4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Using "dw" with the cursor past the end of the last line (using
12 CTRL-\ CTRL-O from Insert mode) deletes a character. (Tim Chase)
13 Solution: Don't move the cursor back when the movement failed.
17 *** ../vim-7.1.102/src/normal.c Tue Aug 14 22:54:00 2007
18 --- src/normal.c Tue Sep 11 19:32:42 2007
21 n = fwd_word(cap->count1, cap->arg, cap->oap->op_type != OP_NOP);
23 /* Don't leave the cursor on the NUL past a line */
24 ! if (curwin->w_cursor.col && gchar_cursor() == NUL)
26 --curwin->w_cursor.col;
27 cap->oap->inclusive = TRUE;
29 n = fwd_word(cap->count1, cap->arg, cap->oap->op_type != OP_NOP);
31 /* Don't leave the cursor on the NUL past a line */
32 ! if (n != FAIL && curwin->w_cursor.col > 0 && gchar_cursor() == NUL)
34 --curwin->w_cursor.col;
35 cap->oap->inclusive = TRUE;
36 *** ../vim-7.1.102/src/version.c Thu Sep 13 15:19:32 2007
37 --- src/version.c Thu Sep 13 15:32:05 2007
41 { /* Add new patch number below this line */
47 ARTHUR: Then who is your lord?
48 WOMAN: We don't have a lord.
50 DENNIS: I told you. We're an anarcho-syndicalist commune. We take it in
51 turns to act as a sort of executive officer for the week.
52 The Quest for the Holy Grail (Monty Python)
54 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
55 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
56 \\\ download, build and distribute -- http://www.A-A-P.org ///
57 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///