summaryrefslogtreecommitdiff
path: root/src/xxd
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-26 21:06:50 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-26 21:06:50 +0000
commit899dddf88804af20d560b5277f1ca1bc4dd8e2b3 (patch)
tree17525001ae02c1e762f4dd6b383612bd16f7238d /src/xxd
parent5c6a2d53232f248c0ba0e4278a447042aa00371e (diff)
downloadvim-git-899dddf88804af20d560b5277f1ca1bc4dd8e2b3.tar.gz
updated for version 7.0b02v7.0b02
Diffstat (limited to 'src/xxd')
-rw-r--r--src/xxd/xxd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xxd/xxd.c b/src/xxd/xxd.c
index 2b3ee9c03..f57d78634 100644
--- a/src/xxd/xxd.c
+++ b/src/xxd/xxd.c
@@ -275,6 +275,9 @@ long base_off;
if (c == '\r') /* Doze style input file? */
continue;
+ if (c == ' ' || c == '\n' || c == '\t') /* allow multiple spaces */
+ continue;
+
n3 = n2;
n2 = n1;
@@ -334,7 +337,7 @@ long base_off;
n1 = -1;
if ((++p >= cols) && !hextype)
{
- /* skip rest of line as garbaga */
+ /* skip rest of line as garbage */
want_off = 0;
while ((c = getc(fpi)) != '\n' && c != EOF)
;