commit | a045324992492294c198a75719fc9f05ca3efc35 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Jan 03 12:20:39 2008 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Jan 03 12:20:39 2008 +0000 |
tree | 50053e9a5cdc1716c8b1406254a70e476434052f | |
parent | 913626cedbcfda2763e8c5773ec0b8f5aad8486c [diff] [blame] |
updated for version 7.1-190
diff --git a/src/normal.c b/src/normal.c index d1be629..f5b7651 100644 --- a/src/normal.c +++ b/src/normal.c
@@ -6564,6 +6564,12 @@ 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