summaryrefslogtreecommitdiffstats
path: root/src/cindent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cindent.c')
-rw-r--r--src/cindent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cindent.c b/src/cindent.c
index b751206532..850a369947 100644
--- a/src/cindent.c
+++ b/src/cindent.c
@@ -82,10 +82,10 @@ skip_string(char_u *p)
{
if (p[0] == '\'') // 'c' or '\n' or '\000'
{
- if (!p[1]) // ' at end of line
+ if (p[1] == NUL) // ' at end of line
break;
i = 2;
- if (p[1] == '\\') // '\n' or '\000'
+ if (p[1] == '\\' && p[2] != NUL) // '\n' or '\000'
{
++i;
while (vim_isdigit(p[i - 1])) // '\000'