]> git.pld-linux.org Git - packages/vim.git/blob - 7.1.140
- updated to 7.1.285
[packages/vim.git] / 7.1.140
1 To: vim-dev@vim.org
2 Subject: Patch 7.1.140
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.140
11 Problem:    v:count is set only after typing a non-digit, that makes it
12             difficult to make a nice mapping.
13 Solution:   Set v:count while still typing the count.
14 Files:      src/normal.c
15
16
17 *** ../vim-7.1.139/src/normal.c Thu Sep 13 18:25:08 2007
18 --- src/normal.c        Sun Oct 14 17:15:36 2007
19 ***************
20 *** 690,695 ****
21 --- 690,702 ----
22                 ca.count0 = ca.count0 * 10 + (c - '0');
23             if (ca.count0 < 0)      /* got too large! */
24                 ca.count0 = 999999999L;
25 + #ifdef FEAT_EVAL
26 +           /* Set v:count here, when called from main() and not a stuffed
27 +            * command, so that v:count can be used in an expression mapping
28 +            * right after the count. */
29 +           if (toplevel && stuff_empty())
30 +               set_vcount(ca.count0, ca.count0 == 0 ? 1 : ca.count0);
31 + #endif
32             if (ctrl_w)
33             {
34                 ++no_mapping;
35 *** ../vim-7.1.139/src/version.c        Sun Oct 14 15:32:10 2007
36 --- src/version.c       Sun Oct 14 17:13:15 2007
37 ***************
38 *** 668,669 ****
39 --- 668,671 ----
40   {   /* Add new patch number below this line */
41 + /**/
42 +     140,
43   /**/
44
45 -- 
46 How To Keep A Healthy Level Of Insanity:
47 11. Specify that your drive-through order is "to go".
48
49  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
50 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
51 \\\        download, build and distribute -- http://www.A-A-P.org        ///
52  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.029156 seconds and 3 git commands to generate.