ea46500
To: vim-dev@vim.org
ea46500
Subject: Patch 7.2.025
ea46500
Fcc: outbox
ea46500
From: Bram Moolenaar <Bram@moolenaar.net>
ea46500
Mime-Version: 1.0
ea46500
Content-Type: text/plain; charset=ISO-8859-1
ea46500
Content-Transfer-Encoding: 8bit
ea46500
------------
ea46500
ea46500
Patch 7.2.025
ea46500
Problem:    When a CursorHold event invokes system() it is retriggered over
ea46500
	    and over again.
ea46500
Solution:   Don't reset did_cursorhold when getting K_IGNORE.
ea46500
Files:	    src/normal.c
ea46500
ea46500
ea46500
*** ../vim-7.2.024/src/normal.c	Sat Sep  6 16:44:06 2008
ea46500
--- src/normal.c	Sat Sep 27 13:03:34 2008
ea46500
***************
ea46500
*** 1132,1138 ****
ea46500
  	out_flush();
ea46500
  #endif
ea46500
  #ifdef FEAT_AUTOCMD
ea46500
!     did_cursorhold = FALSE;
ea46500
  #endif
ea46500
  
ea46500
      State = NORMAL;
ea46500
--- 1132,1139 ----
ea46500
  	out_flush();
ea46500
  #endif
ea46500
  #ifdef FEAT_AUTOCMD
ea46500
!     if (ca.cmdchar != K_IGNORE)
ea46500
! 	did_cursorhold = FALSE;
ea46500
  #endif
ea46500
  
ea46500
      State = NORMAL;
ea46500
*** ../vim-7.2.024/src/version.c	Thu Oct  2 22:48:01 2008
ea46500
--- src/version.c	Thu Oct  2 22:54:41 2008
ea46500
***************
ea46500
*** 678,679 ****
ea46500
--- 678,681 ----
ea46500
  {   /* Add new patch number below this line */
ea46500
+ /**/
ea46500
+     25,
ea46500
  /**/
ea46500
ea46500
-- 
ea46500
hundred-and-one symptoms of being an internet addict:
ea46500
128. You can access the Net -- via your portable and cellular phone.
ea46500
ea46500
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
ea46500
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
ea46500
\\\        download, build and distribute -- http://www.A-A-P.org        ///
ea46500
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///