]> git.pld-linux.org Git - packages/vim.git/blame - 7.1.140
- typo
[packages/vim.git] / 7.1.140
CommitLineData
25f687b8
AM
1To: vim-dev@vim.org
2Subject: Patch 7.1.140
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.1.140
11Problem: v:count is set only after typing a non-digit, that makes it
12 difficult to make a nice mapping.
13Solution: Set v:count while still typing the count.
14Files: 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--
46How To Keep A Healthy Level Of Insanity:
4711. 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.325322 seconds and 4 git commands to generate.