git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58a6ff6
)
digraphs: warn if vim returns insufficient input
author
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 22 Feb 2015 02:07:30 +0000
(
03:07
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 9 Jun 2015 03:43:42 +0000
(
05:43
+0200)
tools/mkdigraphs-vim
patch
|
blob
|
history
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;
}
'