git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
digraphs: warn if vim returns insufficient input
[sheet.git]
/
tools
/
mkdigraphs-vim
diff --git
a/tools/mkdigraphs-vim
b/tools/mkdigraphs-vim
index 6805f7f0a27a98bfbb2f5f57450313fd9e5969d2..a94812fe942f52a8eb4a513e3c28906e3ffa6fc5 100755
(executable)
--- a/
tools/mkdigraphs-vim
+++ b/
tools/mkdigraphs-vim
@@
-10,5
+10,6
@@
vim -e -c'echo version' -cdigraphs -cq | perl -CSD -nE '
say "q{$1} => $3," while /\G(\S\S) (.[^ ]*) +([0-9]+)\s+/g;
} END { # foot
say "}";
+ exit warn "only $. lines of :digraphs output\n" if $. < 6;
}
'