In C mode, insure indentation is correct when inserting newline at end of white lines.

This commit is contained in:
Renaud 2016-02-24 22:18:37 +08:00
parent 15e5796426
commit 998559464b
1 changed files with 2 additions and 2 deletions

View File

@ -547,8 +547,8 @@ static int cinsert(void)
cptr = &curwp->w_dotp->l_text[0];
/* check for a brace */
tptr = curwp->w_doto - 1;
bracef = (cptr[tptr] == '{');
tptr = curwp->w_doto ;
bracef = (tptr > 0) && (cptr[ tptr - 1] == '{') ;
/* save the indent of the previous line */
i = 0;