]>
Commit | Line | Data |
---|---|---|
3e524028 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.2.095 | |
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.2.095 | |
11 | Problem: With Visual selection, "r" and then CTRL-C Visual mode is stopped | |
12 | but the highlighting is not removed. | |
13 | Solution: Call reset_VIsual(). | |
14 | Files: src/normal.c | |
15 | ||
16 | ||
17 | *** ../vim-7.2.094/src/normal.c Thu Nov 20 16:11:03 2008 | |
18 | --- src/normal.c Fri Jan 30 20:37:01 2009 | |
19 | *************** | |
20 | *** 6783,6788 **** | |
21 | --- 6783,6790 ---- | |
22 | /* Visual mode "r" */ | |
23 | if (VIsual_active) | |
24 | { | |
25 | + if (got_int) | |
26 | + reset_VIsual(); | |
27 | nv_operator(cap); | |
28 | return; | |
29 | } | |
30 | *************** | |
31 | *** 7839,7845 **** | |
32 | else | |
33 | i = curwin->w_leftcol; | |
34 | /* Go to the middle of the screen line. When 'number' is on and lines | |
35 | ! * are wrapping the middle can be more to the left.*/ | |
36 | if (cap->nchar == 'm') | |
37 | i += (W_WIDTH(curwin) - curwin_col_off() | |
38 | + ((curwin->w_p_wrap && i > 0) | |
39 | --- 7841,7847 ---- | |
40 | else | |
41 | i = curwin->w_leftcol; | |
42 | /* Go to the middle of the screen line. When 'number' is on and lines | |
43 | ! * are wrapping the middle can be more to the left. */ | |
44 | if (cap->nchar == 'm') | |
45 | i += (W_WIDTH(curwin) - curwin_col_off() | |
46 | + ((curwin->w_p_wrap && i > 0) | |
47 | *** ../vim-7.2.094/src/version.c Wed Feb 4 11:19:40 2009 | |
48 | --- src/version.c Wed Feb 4 11:43:28 2009 | |
49 | *************** | |
50 | *** 678,679 **** | |
51 | --- 678,681 ---- | |
52 | { /* Add new patch number below this line */ | |
53 | + /**/ | |
54 | + 95, | |
55 | /**/ | |
56 | ||
57 | -- | |
58 | Nothing is fool-proof to a sufficiently talented fool. | |
59 | ||
60 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
61 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
62 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
63 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |