digraphs: warn if vim returns insufficient input
[sheet.git] / tools / mkdigraphs-vim
index 6805f7f0a27a98bfbb2f5f57450313fd9e5969d2..a94812fe942f52a8eb4a513e3c28906e3ffa6fc5 100755 (executable)
@@ -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;
        }
 '