]>
Commit | Line | Data |
---|---|---|
d2415672 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.1.190 | |
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.190 | |
11 | Problem: Cursor after end-of-line: "iA sentence.<Esc>)" | |
12 | Solution: Move cursor back and make motion inclusive. | |
13 | Files: src/normal.c | |
14 | ||
15 | ||
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 | |
18 | *************** | |
19 | *** 6564,6569 **** | |
20 | --- 6564,6575 ---- | |
21 | clearopbeep(cap->oap); | |
22 | else | |
23 | { | |
24 | + /* Don't leave the cursor on the NUL past a line */ | |
25 | + if (curwin->w_cursor.col > 0 && gchar_cursor() == NUL) | |
26 | + { | |
27 | + --curwin->w_cursor.col; | |
28 | + cap->oap->inclusive = TRUE; | |
29 | + } | |
30 | #ifdef FEAT_VIRTUALEDIT | |
31 | curwin->w_cursor.coladd = 0; | |
32 | #endif | |
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 | |
35 | *************** | |
36 | *** 668,669 **** | |
37 | --- 668,671 ---- | |
38 | { /* Add new patch number below this line */ | |
39 | + /**/ | |
40 | + 190, | |
41 | /**/ | |
42 | ||
43 | -- | |
44 | [clop clop] | |
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 | |
48 | all England! | |
49 | GUARD #1: Pull the other one! | |
50 | The Quest for the Holy Grail (Monty Python) | |
51 | ||
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 /// |