Karsten Hopp 69d579
To: vim-dev@vim.org
Karsten Hopp 69d579
Subject: Patch 7.1.187
Karsten Hopp 69d579
Fcc: outbox
Karsten Hopp 69d579
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 69d579
Mime-Version: 1.0
Karsten Hopp 69d579
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 69d579
Content-Transfer-Encoding: 8bit
Karsten Hopp 69d579
------------
Karsten Hopp 69d579
Karsten Hopp 69d579
Patch 7.1.187
Karsten Hopp 69d579
Problem:    Win32 GUI: Custom completion using system() no longer works
Karsten Hopp 69d579
	    after patch 7.1.104. (Erik Falor)
Karsten Hopp 69d579
Solution:   Loop when safe_vgetc() returns K_IGNORE.
Karsten Hopp 69d579
Files:	    src/ex_getln.c
Karsten Hopp 69d579
Karsten Hopp 69d579
Karsten Hopp 69d579
*** ../vim-7.1.186/src/ex_getln.c	Fri Dec  7 20:28:13 2007
Karsten Hopp 69d579
--- src/ex_getln.c	Wed Jan  2 21:42:51 2008
Karsten Hopp 69d579
***************
Karsten Hopp 69d579
*** 335,341 ****
Karsten Hopp 69d579
  	quit_more = FALSE;	/* reset after CTRL-D which had a more-prompt */
Karsten Hopp 69d579
  
Karsten Hopp 69d579
  	cursorcmd();		/* set the cursor on the right spot */
Karsten Hopp 69d579
! 	c = safe_vgetc();
Karsten Hopp 69d579
  	if (KeyTyped)
Karsten Hopp 69d579
  	{
Karsten Hopp 69d579
  	    some_key_typed = TRUE;
Karsten Hopp 69d579
--- 335,348 ----
Karsten Hopp 69d579
  	quit_more = FALSE;	/* reset after CTRL-D which had a more-prompt */
Karsten Hopp 69d579
  
Karsten Hopp 69d579
  	cursorcmd();		/* set the cursor on the right spot */
Karsten Hopp 69d579
! 
Karsten Hopp 69d579
! 	/* Get a character.  Ignore K_IGNORE, it should not do anything, such
Karsten Hopp 69d579
! 	 * as stop completion. */
Karsten Hopp 69d579
! 	do
Karsten Hopp 69d579
! 	{
Karsten Hopp 69d579
! 	    c = safe_vgetc();
Karsten Hopp 69d579
! 	} while (c == K_IGNORE);
Karsten Hopp 69d579
! 
Karsten Hopp 69d579
  	if (KeyTyped)
Karsten Hopp 69d579
  	{
Karsten Hopp 69d579
  	    some_key_typed = TRUE;
Karsten Hopp 69d579
***************
Karsten Hopp 69d579
*** 1209,1215 ****
Karsten Hopp 69d579
  		goto cmdline_not_changed;
Karsten Hopp 69d579
  
Karsten Hopp 69d579
  	case K_IGNORE:
Karsten Hopp 69d579
! 		goto cmdline_not_changed;	/* Ignore mouse */
Karsten Hopp 69d579
  
Karsten Hopp 69d579
  #ifdef FEAT_GUI_W32
Karsten Hopp 69d579
  	    /* On Win32 ignore <M-F4>, we get it when closing the window was
Karsten Hopp 69d579
--- 1216,1223 ----
Karsten Hopp 69d579
  		goto cmdline_not_changed;
Karsten Hopp 69d579
  
Karsten Hopp 69d579
  	case K_IGNORE:
Karsten Hopp 69d579
! 		/* Ignore mouse event or ex_window() result. */
Karsten Hopp 69d579
! 		goto cmdline_not_changed;
Karsten Hopp 69d579
  
Karsten Hopp 69d579
  #ifdef FEAT_GUI_W32
Karsten Hopp 69d579
  	    /* On Win32 ignore <M-F4>, we get it when closing the window was
Karsten Hopp 69d579
*** ../vim-7.1.186/src/version.c	Wed Jan  2 21:07:32 2008
Karsten Hopp 69d579
--- src/version.c	Wed Jan  2 21:53:24 2008
Karsten Hopp 69d579
***************
Karsten Hopp 69d579
*** 668,669 ****
Karsten Hopp 69d579
--- 668,671 ----
Karsten Hopp 69d579
  {   /* Add new patch number below this line */
Karsten Hopp 69d579
+ /**/
Karsten Hopp 69d579
+     187,
Karsten Hopp 69d579
  /**/
Karsten Hopp 69d579
Karsten Hopp 69d579
-- 
Karsten Hopp 69d579
FATHER:    Who are you?
Karsten Hopp 69d579
PRINCE:    I'm ... your son ...
Karsten Hopp 69d579
FATHER:    Not you.
Karsten Hopp 69d579
LAUNCELOT: I'm ... er ... Sir Launcelot, sir.
Karsten Hopp 69d579
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 69d579
Karsten Hopp 69d579
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 69d579
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 69d579
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 69d579
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///