Mercurial > vim
changeset 1475:c87ce0b2ee2a v7.1.190
updated for version 7.1-190
author | vimboss |
---|---|
date | Thu, 03 Jan 2008 12:20:39 +0000 |
parents | 276244befa5b |
children | ea1a2950ed16 |
files | src/normal.c src/version.c |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
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