4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Cursor after end-of-line: "iA sentence.<Esc>)"
12 Solution: Move cursor back and make motion inclusive.
16 *** ../vim-7.1.189/src/normal.c Wed Jan 2 16:25:20 2008
17 --- src/normal.c Wed Jan 2 22:04:38 2008
21 clearopbeep(cap->oap);
24 + /* Don't leave the cursor on the NUL past a line */
25 + if (curwin->w_cursor.col > 0 && gchar_cursor() == NUL)
27 + --curwin->w_cursor.col;
28 + cap->oap->inclusive = TRUE;
30 #ifdef FEAT_VIRTUALEDIT
31 curwin->w_cursor.coladd = 0;
33 *** ../vim-7.1.189/src/version.c Thu Jan 3 12:42:39 2008
34 --- src/version.c Thu Jan 3 13:19:03 2008
38 { /* Add new patch number below this line */
45 GUARD #1: Halt! Who goes there?
46 ARTHUR: It is I, Arthur, son of Uther Pendragon, from the castle of
47 Camelot. King of the Britons, defeator of the Saxons, sovereign of
49 GUARD #1: Pull the other one!
50 The Quest for the Holy Grail (Monty Python)
52 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
53 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
54 \\\ download, build and distribute -- http://www.A-A-P.org ///
55 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///