a1427f3
To: vim-dev@vim.org
a1427f3
Subject: Patch 7.0.119
a1427f3
Fcc: outbox
a1427f3
From: Bram Moolenaar <Bram@moolenaar.net>
a1427f3
Mime-Version: 1.0
a1427f3
Content-Type: text/plain; charset=ISO-8859-1
a1427f3
Content-Transfer-Encoding: 8bit
a1427f3
------------
a1427f3
a1427f3
Patch 7.0.119
a1427f3
Problem:    When going back from Insert to Normal mode the CursorHold event
a1427f3
	    doesn't trigger. (Yakov Lerner)
a1427f3
Solution:   Reset "did_cursorhold" when leaving Insert mode.
a1427f3
Files:	    src/edit.c
a1427f3
a1427f3
a1427f3
*** ../vim-7.0.118/src/edit.c	Tue Oct  3 15:49:20 2006
a1427f3
--- src/edit.c	Thu Oct  5 22:26:27 2006
a1427f3
***************
a1427f3
*** 923,928 ****
a1427f3
--- 923,929 ----
a1427f3
  		if (cmdchar != 'r' && cmdchar != 'v')
a1427f3
  		    apply_autocmds(EVENT_INSERTLEAVE, NULL, NULL,
a1427f3
  							       FALSE, curbuf);
a1427f3
+ 		did_cursorhold = FALSE;
a1427f3
  #endif
a1427f3
  		return (c == Ctrl_O);
a1427f3
  	    }
a1427f3
*** ../vim-7.0.118/src/version.c	Tue Oct  3 17:21:04 2006
a1427f3
--- src/version.c	Fri Oct  6 20:35:45 2006
a1427f3
***************
a1427f3
*** 668,669 ****
a1427f3
--- 668,671 ----
a1427f3
  {   /* Add new patch number below this line */
a1427f3
+ /**/
a1427f3
+     119,
a1427f3
  /**/
a1427f3
a1427f3
-- 
a1427f3
The Feynman problem solving Algorithm:
a1427f3
	1) Write down the problem
a1427f3
	2) Think real hard
a1427f3
	3) Write down the answer
a1427f3
a1427f3
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
a1427f3
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
a1427f3
\\\        download, build and distribute -- http://www.A-A-P.org        ///
a1427f3
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///