Karsten Hopp 89d98f
To: vim_dev@googlegroups.com
Karsten Hopp 89d98f
Subject: Patch 7.3.260
Karsten Hopp 89d98f
Fcc: outbox
Karsten Hopp 89d98f
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 89d98f
Mime-Version: 1.0
Karsten Hopp 89d98f
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 89d98f
Content-Transfer-Encoding: 8bit
Karsten Hopp 89d98f
------------
Karsten Hopp 89d98f
Karsten Hopp 89d98f
Patch 7.3.260
Karsten Hopp 89d98f
Problem:    CursorHold triggers on an incomplete mapping. (Will Gray)
Karsten Hopp 89d98f
Solution:   Don't trigger CursorHold when there is typeahead.
Karsten Hopp 89d98f
Files:	    src/fileio.c
Karsten Hopp 89d98f
Karsten Hopp 89d98f
Karsten Hopp 89d98f
*** ../vim-7.3.259/src/fileio.c	2011-05-19 17:25:36.000000000 +0200
Karsten Hopp 89d98f
--- src/fileio.c	2011-07-20 18:22:16.000000000 +0200
Karsten Hopp 89d98f
***************
Karsten Hopp 89d98f
*** 9044,9050 ****
Karsten Hopp 89d98f
  {
Karsten Hopp 89d98f
      int		state;
Karsten Hopp 89d98f
  
Karsten Hopp 89d98f
!     if (!did_cursorhold && has_cursorhold() && !Recording
Karsten Hopp 89d98f
  #ifdef FEAT_INS_EXPAND
Karsten Hopp 89d98f
  	    && !ins_compl_active()
Karsten Hopp 89d98f
  #endif
Karsten Hopp 89d98f
--- 9044,9053 ----
Karsten Hopp 89d98f
  {
Karsten Hopp 89d98f
      int		state;
Karsten Hopp 89d98f
  
Karsten Hopp 89d98f
!     if (!did_cursorhold
Karsten Hopp 89d98f
! 	    && has_cursorhold()
Karsten Hopp 89d98f
! 	    && !Recording
Karsten Hopp 89d98f
! 	    && typebuf.tb_len == 0
Karsten Hopp 89d98f
  #ifdef FEAT_INS_EXPAND
Karsten Hopp 89d98f
  	    && !ins_compl_active()
Karsten Hopp 89d98f
  #endif
Karsten Hopp 89d98f
***************
Karsten Hopp 89d98f
*** 9935,9940 ****
Karsten Hopp 89d98f
--- 9938,9945 ----
Karsten Hopp 89d98f
  	    if ((c == ';' || c == '>') && match == FALSE)
Karsten Hopp 89d98f
  	    {
Karsten Hopp 89d98f
  		*pattern = NUL;	    /* Terminate the string */
Karsten Hopp 89d98f
+ 		/* TODO: match with 'filetype' of buffer that "fname" comes
Karsten Hopp 89d98f
+ 		 * from. */
Karsten Hopp 89d98f
  		match = mch_check_filetype(fname, type_start);
Karsten Hopp 89d98f
  		*pattern = c;	    /* Restore the terminator */
Karsten Hopp 89d98f
  		type_start = pattern + 1;
Karsten Hopp 89d98f
*** ../vim-7.3.259/src/version.c	2011-07-20 17:58:14.000000000 +0200
Karsten Hopp 89d98f
--- src/version.c	2011-07-20 18:25:15.000000000 +0200
Karsten Hopp 89d98f
***************
Karsten Hopp 89d98f
*** 711,712 ****
Karsten Hopp 89d98f
--- 711,714 ----
Karsten Hopp 89d98f
  {   /* Add new patch number below this line */
Karsten Hopp 89d98f
+ /**/
Karsten Hopp 89d98f
+     260,
Karsten Hopp 89d98f
  /**/
Karsten Hopp 89d98f
Karsten Hopp 89d98f
-- 
Karsten Hopp 89d98f
LAUNCELOT: At last!   A call!  A cry of distress ...
Karsten Hopp 89d98f
           (he draws his sword, and turns to CONCORDE)
Karsten Hopp 89d98f
           Concorde!  Brave, Concorde ... you shall not have died in vain!
Karsten Hopp 89d98f
CONCORDE:  I'm not quite dead, sir ...
Karsten Hopp 89d98f
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 89d98f
Karsten Hopp 89d98f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 89d98f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 89d98f
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 89d98f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///