Mercurial > vim
diff src/normal.c @ 1475:c87ce0b2ee2a v7.1.190
updated for version 7.1-190
author | vimboss |
---|---|
date | Thu, 03 Jan 2008 12:20:39 +0000 |
parents | 88c0c6c9eada |
children | 0f3f3090491f |
line wrap: on
line diff
--- a/src/normal.c +++ b/src/normal.c @@ -6564,6 +6564,12 @@ nv_brace(cap) clearopbeep(cap->oap); else { + /* Don't leave the cursor on the NUL past a line */ + if (curwin->w_cursor.col > 0 && gchar_cursor() == NUL) + { + --curwin->w_cursor.col; + cap->oap->inclusive = TRUE; + } #ifdef FEAT_VIRTUALEDIT curwin->w_cursor.coladd = 0; #endif