1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Using a count before "v" and "V" does not work (Kikyous)
12 Solution: Make the count select that many characters or lines. (Christian
17 *** ../vim-7.3.528/src/normal.c 2012-05-25 11:04:34.000000000 +0200
18 --- src/normal.c 2012-05-25 13:12:06.000000000 +0200
21 else /* start Visual mode */
23 check_visual_highlight();
24 ! if (cap->count0) /* use previously selected part */
26 ! if (resel_VIsual_mode == NUL) /* there is none */
31 VIsual = curwin->w_cursor;
35 else /* start Visual mode */
37 check_visual_highlight();
38 ! if (cap->count0 > 0 && resel_VIsual_mode != NUL)
40 ! /* use previously selected part */
41 VIsual = curwin->w_cursor;
47 /* start Select mode when 'selectmode' contains "cmd" */
48 may_start_select('c');
49 n_start_visual_mode(cap->cmdchar);
50 + if (VIsual_mode != 'V' && *p_sel == 'e')
51 + ++cap->count1; /* include one more char */
52 + if (cap->count0 > 0 && --cap->count1 > 0)
54 + /* With a count select that many characters or lines. */
55 + if (VIsual_mode == 'v' || VIsual_mode == Ctrl_V)
57 + else if (VIsual_mode == 'V')
63 *** ../vim-7.3.528/src/version.c 2012-05-25 12:38:57.000000000 +0200
64 --- src/version.c 2012-05-25 12:59:58.000000000 +0200
68 { /* Add new patch number below this line */
74 Normal people believe that if it ain't broke, don't fix it. Engineers believe
75 that if it ain't broke, it doesn't have enough features yet.
76 (Scott Adams - The Dilbert principle)
78 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
79 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
80 \\\ an exciting new programming language -- http://www.Zimbu.org ///
81 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///