summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index fccb13f95..611354160 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -7215,6 +7215,8 @@ in_cinkeys(keytyped, when, line_is_empty)
p = ml_get_curline();
if (cin_iscase(p) || cin_isscopedecl(p) || cin_islabel(30))
return TRUE;
+ /* Need to get the line again after cin_islabel(). */
+ p = ml_get_curline();
if (curwin->w_cursor.col > 2
&& p[curwin->w_cursor.col - 1] == ':'
&& p[curwin->w_cursor.col - 2] == ':')