diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/indent_c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/indent_c.c b/src/nvim/indent_c.c index 56276db3ce..9c636ebbcc 100644 --- a/src/nvim/indent_c.c +++ b/src/nvim/indent_c.c @@ -1805,6 +1805,7 @@ int get_c_indent(void) } if (trypos != NULL) { + our_paren_pos = *trypos; /* * If the matching paren is more than one line away, use the indent of * a previous non-empty line that matches the same paren. @@ -1814,7 +1815,6 @@ int get_c_indent(void) amount = get_indent_lnum(curwin->w_cursor.lnum - 1); /* XXX */ } else { amount = -1; - our_paren_pos = *trypos; for (lnum = cur_curpos.lnum - 1; lnum > our_paren_pos.lnum; --lnum) { l = skipwhite(ml_get(lnum)); if (cin_nocode(l)) /* skip comment lines */ |