]>
Commit | Line | Data |
---|---|---|
c0949972 ER |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.1.103 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.1.103 | |
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. | |
14 | Files: src/normal.c | |
15 | ||
16 | ||
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 | |
19 | *************** | |
20 | *** 8364,8370 **** | |
21 | n = fwd_word(cap->count1, cap->arg, cap->oap->op_type != OP_NOP); | |
22 | ||
23 | /* Don't leave the cursor on the NUL past a line */ | |
24 | ! if (curwin->w_cursor.col && gchar_cursor() == NUL) | |
25 | { | |
26 | --curwin->w_cursor.col; | |
27 | cap->oap->inclusive = TRUE; | |
28 | --- 8364,8370 ---- | |
29 | n = fwd_word(cap->count1, cap->arg, cap->oap->op_type != OP_NOP); | |
30 | ||
31 | /* Don't leave the cursor on the NUL past a line */ | |
32 | ! if (n != FAIL && curwin->w_cursor.col > 0 && gchar_cursor() == NUL) | |
33 | { | |
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 | |
38 | *************** | |
39 | *** 668,669 **** | |
40 | --- 668,671 ---- | |
41 | { /* Add new patch number below this line */ | |
42 | + /**/ | |
43 | + 103, | |
44 | /**/ | |
45 | ||
46 | -- | |
47 | ARTHUR: Then who is your lord? | |
48 | WOMAN: We don't have a lord. | |
49 | ARTHUR: What? | |
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) | |
53 | ||
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 /// |