astepano / rpms / vim

Forked from rpms/vim 6 years ago
Clone
33c9b89
To: vim-dev@vim.org
33c9b89
Subject: Patch 7.1.140
33c9b89
Fcc: outbox
33c9b89
From: Bram Moolenaar <Bram@moolenaar.net>
33c9b89
Mime-Version: 1.0
33c9b89
Content-Type: text/plain; charset=ISO-8859-1
33c9b89
Content-Transfer-Encoding: 8bit
33c9b89
------------
33c9b89
33c9b89
Patch 7.1.140
33c9b89
Problem:    v:count is set only after typing a non-digit, that makes it
33c9b89
	    difficult to make a nice mapping.
33c9b89
Solution:   Set v:count while still typing the count.
33c9b89
Files:	    src/normal.c
33c9b89
33c9b89
33c9b89
*** ../vim-7.1.139/src/normal.c	Thu Sep 13 18:25:08 2007
33c9b89
--- src/normal.c	Sun Oct 14 17:15:36 2007
33c9b89
***************
33c9b89
*** 690,695 ****
33c9b89
--- 690,702 ----
33c9b89
  		ca.count0 = ca.count0 * 10 + (c - '0');
33c9b89
  	    if (ca.count0 < 0)	    /* got too large! */
33c9b89
  		ca.count0 = 999999999L;
33c9b89
+ #ifdef FEAT_EVAL
33c9b89
+ 	    /* Set v:count here, when called from main() and not a stuffed
33c9b89
+ 	     * command, so that v:count can be used in an expression mapping
33c9b89
+ 	     * right after the count. */
33c9b89
+ 	    if (toplevel && stuff_empty())
33c9b89
+ 		set_vcount(ca.count0, ca.count0 == 0 ? 1 : ca.count0);
33c9b89
+ #endif
33c9b89
  	    if (ctrl_w)
33c9b89
  	    {
33c9b89
  		++no_mapping;
33c9b89
*** ../vim-7.1.139/src/version.c	Sun Oct 14 15:32:10 2007
33c9b89
--- src/version.c	Sun Oct 14 17:13:15 2007
33c9b89
***************
33c9b89
*** 668,669 ****
33c9b89
--- 668,671 ----
33c9b89
  {   /* Add new patch number below this line */
33c9b89
+ /**/
33c9b89
+     140,
33c9b89
  /**/
33c9b89
33c9b89
-- 
33c9b89
How To Keep A Healthy Level Of Insanity:
33c9b89
11. Specify that your drive-through order is "to go".
33c9b89
33c9b89
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
33c9b89
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
33c9b89
\\\        download, build and distribute -- http://www.A-A-P.org        ///
33c9b89
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///