summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-11-11 16:30:08 +0000
committerBram Moolenaar <Bram@vim.org>2009-11-11 16:30:08 +0000
commitd7d5b47dc73bbde3ed882f4a6e4dc42aaec5247a (patch)
tree1bf45fac0e3e1ed34a2bc71f088947149fe49e3e /src/misc1.c
parentbe1138baba7cc49b4ff1da0beb16643eb2747fdb (diff)
downloadvim-d7d5b47dc73bbde3ed882f4a6e4dc42aaec5247a.zip
updated for version 7.2-293
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/misc1.c b/src/misc1.c
index bb15d429d..f7da7c491 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -1026,12 +1026,14 @@ open_line(dir, flags, old_indent)
int c = 0;
int off = 0;
- for (p = lead_flags; *p && *p != ':'; ++p)
+ for (p = lead_flags; *p != NUL && *p != ':'; )
{
if (*p == COM_RIGHT || *p == COM_LEFT)
- c = *p;
+ c = *p++;
else if (VIM_ISDIGIT(*p) || *p == '-')
off = getdigits(&p);
+ else
+ ++p;
}
if (c == COM_RIGHT) /* right adjusted leader */
{