]>
Commit | Line | Data |
---|---|---|
ad28a8ff AG |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.1.018 | |
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.018 | |
11 | Problem: When 'virtualedit' is set a "p" of a block just past the end of | |
12 | the line inserts before the cursor. (Engelke) | |
13 | Solution: Check for the cursor being just after the line (Chris Lubinski) | |
14 | Files: src/ops.c | |
15 | ||
16 | ||
17 | *** ../vim-7.1.017/src/ops.c Thu May 10 20:34:55 2007 | |
18 | --- src/ops.c Tue Jun 19 22:40:45 2007 | |
19 | *************** | |
20 | *** 3404,3410 **** | |
21 | ||
22 | #ifdef FEAT_VIRTUALEDIT | |
23 | col += curwin->w_cursor.coladd; | |
24 | ! if (ve_flags == VE_ALL && curwin->w_cursor.coladd > 0) | |
25 | { | |
26 | if (dir == FORWARD && c == NUL) | |
27 | ++col; | |
28 | --- 3404,3412 ---- | |
29 | ||
30 | #ifdef FEAT_VIRTUALEDIT | |
31 | col += curwin->w_cursor.coladd; | |
32 | ! if (ve_flags == VE_ALL | |
33 | ! && (curwin->w_cursor.coladd > 0 | |
34 | ! || endcol2 == curwin->w_cursor.col)) | |
35 | { | |
36 | if (dir == FORWARD && c == NUL) | |
37 | ++col; | |
38 | *** ../vim-7.1.017/src/version.c Thu Jun 28 21:57:08 2007 | |
39 | --- src/version.c Thu Jun 28 22:12:49 2007 | |
40 | *************** | |
41 | *** 668,669 **** | |
42 | --- 668,671 ---- | |
43 | { /* Add new patch number below this line */ | |
44 | + /**/ | |
45 | + 18, | |
46 | /**/ | |
47 | ||
48 | -- | |
49 | [clop clop] | |
50 | MORTICIAN: Who's that then? | |
51 | CUSTOMER: I don't know. | |
52 | MORTICIAN: Must be a king. | |
53 | CUSTOMER: Why? | |
54 | MORTICIAN: He hasn't got shit all over him. | |
55 | The Quest for the Holy Grail (Monty Python) | |
56 | ||
57 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
58 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
59 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
60 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |