99b86a7
To: vim-dev@vim.org
99b86a7
Subject: patch 7.1.104
99b86a7
Fcc: outbox
99b86a7
From: Bram Moolenaar <Bram@moolenaar.net>
99b86a7
Mime-Version: 1.0
99b86a7
Content-Type: text/plain; charset=ISO-8859-1
99b86a7
Content-Transfer-Encoding: 8bit
99b86a7
------------
99b86a7
99b86a7
Patch 7.1.104 (after 7.1.095)
99b86a7
Problem:    When 'lazyredraw' is set a focus event causes redraw to be
99b86a7
	    postponed until a key is pressed.
99b86a7
Solution:   Instead of not returning from vgetc() when a focus event is
99b86a7
	    encountered return K_IGNORE.  Add plain_vgetc() for when the
99b86a7
	    caller doesn't want to get K_IGNORE.
99b86a7
Files:	    src/digraph.c, src/edit.c, src/ex_cmds.c, src/ex_getln.c,
99b86a7
	    src/getchar.c, src/normal.c, src/proto/getchar.pro, src/window.c
99b86a7
99b86a7
99b86a7
*** ../vim-7.1.103/src/digraph.c	Sat Jul  7 13:57:39 2007
99b86a7
--- src/digraph.c	Thu Sep 13 16:11:54 2007
99b86a7
***************
99b86a7
*** 2028,2034 ****
99b86a7
  
99b86a7
      ++no_mapping;
99b86a7
      ++allow_keys;
99b86a7
!     c = safe_vgetc();
99b86a7
      --no_mapping;
99b86a7
      --allow_keys;
99b86a7
      if (c != ESC)		/* ESC cancels CTRL-K */
99b86a7
--- 2028,2034 ----
99b86a7
  
99b86a7
      ++no_mapping;
99b86a7
      ++allow_keys;
99b86a7
!     c = plain_vgetc();
99b86a7
      --no_mapping;
99b86a7
      --allow_keys;
99b86a7
      if (c != ESC)		/* ESC cancels CTRL-K */
99b86a7
***************
99b86a7
*** 2050,2056 ****
99b86a7
  #endif
99b86a7
  	++no_mapping;
99b86a7
  	++allow_keys;
99b86a7
! 	cc = safe_vgetc();
99b86a7
  	--no_mapping;
99b86a7
  	--allow_keys;
99b86a7
  	if (cc != ESC)	    /* ESC cancels CTRL-K */
99b86a7
--- 2050,2056 ----
99b86a7
  #endif
99b86a7
  	++no_mapping;
99b86a7
  	++allow_keys;
99b86a7
! 	cc = plain_vgetc();
99b86a7
  	--no_mapping;
99b86a7
  	--allow_keys;
99b86a7
  	if (cc != ESC)	    /* ESC cancels CTRL-K */
99b86a7
***************
99b86a7
*** 2350,2356 ****
99b86a7
      if (*curbuf->b_p_keymap == NUL)
99b86a7
      {
99b86a7
  	/* Stop any active keymap and clear the table.  Also remove
99b86a7
! 	 * b:keymap_unload, as no keymap is active now. */
99b86a7
  	keymap_unload();
99b86a7
  	do_cmdline_cmd((char_u *)"unlet! b:keymap_name");
99b86a7
      }
99b86a7
--- 2350,2356 ----
99b86a7
      if (*curbuf->b_p_keymap == NUL)
99b86a7
      {
99b86a7
  	/* Stop any active keymap and clear the table.  Also remove
99b86a7
! 	 * b:keymap_name, as no keymap is active now. */
99b86a7
  	keymap_unload();
99b86a7
  	do_cmdline_cmd((char_u *)"unlet! b:keymap_name");
99b86a7
      }
99b86a7
*** ../vim-7.1.103/src/edit.c	Sun Aug 12 16:38:03 2007
99b86a7
--- src/edit.c	Thu Sep 13 16:17:54 2007
99b86a7
***************
99b86a7
*** 788,794 ****
99b86a7
  	    ins_redraw(FALSE);
99b86a7
  	    ++no_mapping;
99b86a7
  	    ++allow_keys;
99b86a7
! 	    c = safe_vgetc();
99b86a7
  	    --no_mapping;
99b86a7
  	    --allow_keys;
99b86a7
  	    if (c != Ctrl_N && c != Ctrl_G && c != Ctrl_O)
99b86a7
--- 788,794 ----
99b86a7
  	    ins_redraw(FALSE);
99b86a7
  	    ++no_mapping;
99b86a7
  	    ++allow_keys;
99b86a7
! 	    c = plain_vgetc();
99b86a7
  	    --no_mapping;
99b86a7
  	    --allow_keys;
99b86a7
  	    if (c != Ctrl_N && c != Ctrl_G && c != Ctrl_O)
99b86a7
***************
99b86a7
*** 981,987 ****
99b86a7
  #ifdef FEAT_NETBEANS_INTG
99b86a7
  	case K_F21:	/* NetBeans command */
99b86a7
  	    ++no_mapping;		/* don't map the next key hits */
99b86a7
! 	    i = safe_vgetc();
99b86a7
  	    --no_mapping;
99b86a7
  	    netbeans_keycommand(i);
99b86a7
  	    break;
99b86a7
--- 981,987 ----
99b86a7
  #ifdef FEAT_NETBEANS_INTG
99b86a7
  	case K_F21:	/* NetBeans command */
99b86a7
  	    ++no_mapping;		/* don't map the next key hits */
99b86a7
! 	    i = plain_vgetc();
99b86a7
  	    --no_mapping;
99b86a7
  	    netbeans_keycommand(i);
99b86a7
  	    break;
99b86a7
***************
99b86a7
*** 5224,5233 ****
99b86a7
      i = 0;
99b86a7
      for (;;)
99b86a7
      {
99b86a7
! 	do
99b86a7
! 	    nc = safe_vgetc();
99b86a7
! 	while (nc == K_IGNORE || nc == K_VER_SCROLLBAR
99b86a7
! 						    || nc == K_HOR_SCROLLBAR);
99b86a7
  #ifdef FEAT_CMDL_INFO
99b86a7
  	if (!(State & CMDLINE)
99b86a7
  # ifdef FEAT_MBYTE
99b86a7
--- 5224,5230 ----
99b86a7
      i = 0;
99b86a7
      for (;;)
99b86a7
      {
99b86a7
! 	nc = plain_vgetc();
99b86a7
  #ifdef FEAT_CMDL_INFO
99b86a7
  	if (!(State & CMDLINE)
99b86a7
  # ifdef FEAT_MBYTE
99b86a7
***************
99b86a7
*** 7575,7581 ****
99b86a7
       * deleted when ESC is hit.
99b86a7
       */
99b86a7
      ++no_mapping;
99b86a7
!     regname = safe_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
      LANGMAP_ADJUST(regname, TRUE);
99b86a7
  #endif
99b86a7
--- 7572,7578 ----
99b86a7
       * deleted when ESC is hit.
99b86a7
       */
99b86a7
      ++no_mapping;
99b86a7
!     regname = plain_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
      LANGMAP_ADJUST(regname, TRUE);
99b86a7
  #endif
99b86a7
***************
99b86a7
*** 7586,7592 ****
99b86a7
  #ifdef FEAT_CMDL_INFO
99b86a7
  	add_to_showcmd_c(literally);
99b86a7
  #endif
99b86a7
! 	regname = safe_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  	LANGMAP_ADJUST(regname, TRUE);
99b86a7
  #endif
99b86a7
--- 7583,7589 ----
99b86a7
  #ifdef FEAT_CMDL_INFO
99b86a7
  	add_to_showcmd_c(literally);
99b86a7
  #endif
99b86a7
! 	regname = plain_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  	LANGMAP_ADJUST(regname, TRUE);
99b86a7
  #endif
99b86a7
***************
99b86a7
*** 7677,7683 ****
99b86a7
       * deleted when ESC is hit.
99b86a7
       */
99b86a7
      ++no_mapping;
99b86a7
!     c = safe_vgetc();
99b86a7
      --no_mapping;
99b86a7
      switch (c)
99b86a7
      {
99b86a7
--- 7674,7680 ----
99b86a7
       * deleted when ESC is hit.
99b86a7
       */
99b86a7
      ++no_mapping;
99b86a7
!     c = plain_vgetc();
99b86a7
      --no_mapping;
99b86a7
      switch (c)
99b86a7
      {
99b86a7
***************
99b86a7
*** 9356,9362 ****
99b86a7
       * mode message to be deleted when ESC is hit */
99b86a7
      ++no_mapping;
99b86a7
      ++allow_keys;
99b86a7
!     c = safe_vgetc();
99b86a7
      --no_mapping;
99b86a7
      --allow_keys;
99b86a7
      if (IS_SPECIAL(c) || mod_mask)	    /* special key */
99b86a7
--- 9353,9359 ----
99b86a7
       * mode message to be deleted when ESC is hit */
99b86a7
      ++no_mapping;
99b86a7
      ++allow_keys;
99b86a7
!     c = plain_vgetc();
99b86a7
      --no_mapping;
99b86a7
      --allow_keys;
99b86a7
      if (IS_SPECIAL(c) || mod_mask)	    /* special key */
99b86a7
***************
99b86a7
*** 9388,9394 ****
99b86a7
  	}
99b86a7
  	++no_mapping;
99b86a7
  	++allow_keys;
99b86a7
! 	cc = safe_vgetc();
99b86a7
  	--no_mapping;
99b86a7
  	--allow_keys;
99b86a7
  	if (cc != ESC)
99b86a7
--- 9385,9391 ----
99b86a7
  	}
99b86a7
  	++no_mapping;
99b86a7
  	++allow_keys;
99b86a7
! 	cc = plain_vgetc();
99b86a7
  	--no_mapping;
99b86a7
  	--allow_keys;
99b86a7
  	if (cc != ESC)
99b86a7
*** ../vim-7.1.103/src/ex_cmds.c	Tue Aug 21 15:28:32 2007
99b86a7
--- src/ex_cmds.c	Thu Sep 13 16:19:40 2007
99b86a7
***************
99b86a7
*** 4498,4504 ****
99b86a7
  	     *
99b86a7
  	     * The new text is built up in new_start[].  It has some extra
99b86a7
  	     * room to avoid using alloc()/free() too often.  new_start_len is
99b86a7
! 	     * the lenght of the allocated memory at new_start.
99b86a7
  	     *
99b86a7
  	     * Make a copy of the old line, so it won't be taken away when
99b86a7
  	     * updating the screen or handling a multi-line match.  The "old_"
99b86a7
--- 4499,4505 ----
99b86a7
  	     *
99b86a7
  	     * The new text is built up in new_start[].  It has some extra
99b86a7
  	     * room to avoid using alloc()/free() too often.  new_start_len is
99b86a7
! 	     * the length of the allocated memory at new_start.
99b86a7
  	     *
99b86a7
  	     * Make a copy of the old line, so it won't be taken away when
99b86a7
  	     * updating the screen or handling a multi-line match.  The "old_"
99b86a7
***************
99b86a7
*** 4669,4675 ****
99b86a7
  #endif
99b86a7
  			    ++no_mapping;	/* don't map this key */
99b86a7
  			    ++allow_keys;	/* allow special keys */
99b86a7
! 			    i = safe_vgetc();
99b86a7
  			    --allow_keys;
99b86a7
  			    --no_mapping;
99b86a7
  
99b86a7
--- 4670,4676 ----
99b86a7
  #endif
99b86a7
  			    ++no_mapping;	/* don't map this key */
99b86a7
  			    ++allow_keys;	/* allow special keys */
99b86a7
! 			    i = plain_vgetc();
99b86a7
  			    --allow_keys;
99b86a7
  			    --no_mapping;
99b86a7
  
99b86a7
*** ../vim-7.1.103/src/ex_getln.c	Mon Aug  6 22:27:12 2007
99b86a7
--- src/ex_getln.c	Thu Sep 13 16:20:49 2007
99b86a7
***************
99b86a7
*** 641,647 ****
99b86a7
  	{
99b86a7
  	    ++no_mapping;
99b86a7
  	    ++allow_keys;
99b86a7
! 	    c = safe_vgetc();
99b86a7
  	    --no_mapping;
99b86a7
  	    --allow_keys;
99b86a7
  	    /* CTRL-\ e doesn't work when obtaining an expression. */
99b86a7
--- 641,647 ----
99b86a7
  	{
99b86a7
  	    ++no_mapping;
99b86a7
  	    ++allow_keys;
99b86a7
! 	    c = plain_vgetc();
99b86a7
  	    --no_mapping;
99b86a7
  	    --allow_keys;
99b86a7
  	    /* CTRL-\ e doesn't work when obtaining an expression. */
99b86a7
***************
99b86a7
*** 1091,1101 ****
99b86a7
  #endif
99b86a7
  		putcmdline('"', TRUE);
99b86a7
  		++no_mapping;
99b86a7
! 		i = c = safe_vgetc();	/* CTRL-R <char> */
99b86a7
  		if (i == Ctrl_O)
99b86a7
  		    i = Ctrl_R;		/* CTRL-R CTRL-O == CTRL-R CTRL-R */
99b86a7
  		if (i == Ctrl_R)
99b86a7
! 		    c = safe_vgetc();	/* CTRL-R CTRL-R <char> */
99b86a7
  		--no_mapping;
99b86a7
  #ifdef FEAT_EVAL
99b86a7
  		/*
99b86a7
--- 1091,1101 ----
99b86a7
  #endif
99b86a7
  		putcmdline('"', TRUE);
99b86a7
  		++no_mapping;
99b86a7
! 		i = c = plain_vgetc();	/* CTRL-R <char> */
99b86a7
  		if (i == Ctrl_O)
99b86a7
  		    i = Ctrl_R;		/* CTRL-R CTRL-O == CTRL-R CTRL-R */
99b86a7
  		if (i == Ctrl_R)
99b86a7
! 		    c = plain_vgetc();	/* CTRL-R CTRL-R <char> */
99b86a7
  		--no_mapping;
99b86a7
  #ifdef FEAT_EVAL
99b86a7
  		/*
99b86a7
*** ../vim-7.1.103/src/getchar.c	Wed Sep  5 21:45:54 2007
99b86a7
--- src/getchar.c	Thu Sep 13 16:16:53 2007
99b86a7
***************
99b86a7
*** 1597,1608 ****
99b86a7
  	    }
99b86a7
  #endif
99b86a7
  #ifdef FEAT_GUI
99b86a7
! 	    /* The caller doesn't need to know that the focus event is delayed
99b86a7
! 	     * until getting a character. */
99b86a7
  	    if (c == K_FOCUSGAINED || c == K_FOCUSLOST)
99b86a7
  	    {
99b86a7
  		ui_focus_change(c == K_FOCUSGAINED);
99b86a7
! 		continue;
99b86a7
  	    }
99b86a7
  
99b86a7
  	    /* Translate K_CSI to CSI.  The special key is only used to avoid
99b86a7
--- 1597,1609 ----
99b86a7
  	    }
99b86a7
  #endif
99b86a7
  #ifdef FEAT_GUI
99b86a7
! 	    /* Handle focus event here, so that the caller doesn't need to
99b86a7
! 	     * know about it.  Return K_IGNORE so that we loop once (needed if
99b86a7
! 	     * 'lazyredraw' is set). */
99b86a7
  	    if (c == K_FOCUSGAINED || c == K_FOCUSLOST)
99b86a7
  	    {
99b86a7
  		ui_focus_change(c == K_FOCUSGAINED);
99b86a7
! 		c = K_IGNORE;
99b86a7
  	    }
99b86a7
  
99b86a7
  	    /* Translate K_CSI to CSI.  The special key is only used to avoid
99b86a7
***************
99b86a7
*** 1744,1749 ****
99b86a7
--- 1745,1766 ----
99b86a7
      c = vgetc();
99b86a7
      if (c == NUL)
99b86a7
  	c = get_keystroke();
99b86a7
+     return c;
99b86a7
+ }
99b86a7
+ 
99b86a7
+ /*
99b86a7
+  * Like safe_vgetc(), but loop to handle K_IGNORE.
99b86a7
+  * Also ignore scrollbar events.
99b86a7
+  */
99b86a7
+     int
99b86a7
+ plain_vgetc()
99b86a7
+ {
99b86a7
+     int c;
99b86a7
+ 
99b86a7
+     do
99b86a7
+     {
99b86a7
+ 	c = safe_vgetc();
99b86a7
+     } while (c == K_IGNORE || c == K_VER_SCROLLBAR || c == K_HOR_SCROLLBAR);
99b86a7
      return c;
99b86a7
  }
99b86a7
  
99b86a7
*** ../vim-7.1.103/src/normal.c	Thu Sep 13 15:33:18 2007
99b86a7
--- src/normal.c	Thu Sep 13 16:24:51 2007
99b86a7
***************
99b86a7
*** 696,702 ****
99b86a7
  		++allow_keys;		/* no mapping for nchar, but keys */
99b86a7
  	    }
99b86a7
  	    ++no_zero_mapping;		/* don't map zero here */
99b86a7
! 	    c = safe_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  	    LANGMAP_ADJUST(c, TRUE);
99b86a7
  #endif
99b86a7
--- 696,702 ----
99b86a7
  		++allow_keys;		/* no mapping for nchar, but keys */
99b86a7
  	    }
99b86a7
  	    ++no_zero_mapping;		/* don't map zero here */
99b86a7
! 	    c = plain_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  	    LANGMAP_ADJUST(c, TRUE);
99b86a7
  #endif
99b86a7
***************
99b86a7
*** 721,727 ****
99b86a7
  	    ca.count0 = 0;
99b86a7
  	    ++no_mapping;
99b86a7
  	    ++allow_keys;		/* no mapping for nchar, but keys */
99b86a7
! 	    c = safe_vgetc();		/* get next character */
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  	    LANGMAP_ADJUST(c, TRUE);
99b86a7
  #endif
99b86a7
--- 721,727 ----
99b86a7
  	    ca.count0 = 0;
99b86a7
  	    ++no_mapping;
99b86a7
  	    ++allow_keys;		/* no mapping for nchar, but keys */
99b86a7
! 	    c = plain_vgetc();		/* get next character */
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  	    LANGMAP_ADJUST(c, TRUE);
99b86a7
  #endif
99b86a7
***************
99b86a7
*** 900,906 ****
99b86a7
  	     * For 'g' get the next character now, so that we can check for
99b86a7
  	     * "gr", "g'" and "g`".
99b86a7
  	     */
99b86a7
! 	    ca.nchar = safe_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  	    LANGMAP_ADJUST(ca.nchar, TRUE);
99b86a7
  #endif
99b86a7
--- 900,906 ----
99b86a7
  	     * For 'g' get the next character now, so that we can check for
99b86a7
  	     * "gr", "g'" and "g`".
99b86a7
  	     */
99b86a7
! 	    ca.nchar = plain_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  	    LANGMAP_ADJUST(ca.nchar, TRUE);
99b86a7
  #endif
99b86a7
***************
99b86a7
*** 957,963 ****
99b86a7
  		im_set_active(TRUE);
99b86a7
  #endif
99b86a7
  
99b86a7
! 	    *cp = safe_vgetc();
99b86a7
  
99b86a7
  	    if (langmap_active)
99b86a7
  	    {
99b86a7
--- 957,963 ----
99b86a7
  		im_set_active(TRUE);
99b86a7
  #endif
99b86a7
  
99b86a7
! 	    *cp = plain_vgetc();
99b86a7
  
99b86a7
  	    if (langmap_active)
99b86a7
  	    {
99b86a7
***************
99b86a7
*** 1045,1051 ****
99b86a7
  		}
99b86a7
  		if (c > 0)
99b86a7
  		{
99b86a7
! 		    c = safe_vgetc();
99b86a7
  		    if (c != Ctrl_N && c != Ctrl_G)
99b86a7
  			vungetc(c);
99b86a7
  		    else
99b86a7
--- 1045,1051 ----
99b86a7
  		}
99b86a7
  		if (c > 0)
99b86a7
  		{
99b86a7
! 		    c = plain_vgetc();
99b86a7
  		    if (c != Ctrl_N && c != Ctrl_G)
99b86a7
  			vungetc(c);
99b86a7
  		    else
99b86a7
***************
99b86a7
*** 1064,1070 ****
99b86a7
  	    while (enc_utf8 && lang && (c = vpeekc()) > 0
99b86a7
  				 && (c >= 0x100 || MB_BYTE2LEN(vpeekc()) > 1))
99b86a7
  	    {
99b86a7
! 		c = safe_vgetc();
99b86a7
  		if (!utf_iscomposing(c))
99b86a7
  		{
99b86a7
  		    vungetc(c);		/* it wasn't, put it back */
99b86a7
--- 1064,1070 ----
99b86a7
  	    while (enc_utf8 && lang && (c = vpeekc()) > 0
99b86a7
  				 && (c >= 0x100 || MB_BYTE2LEN(vpeekc()) > 1))
99b86a7
  	    {
99b86a7
! 		c = plain_vgetc();
99b86a7
  		if (!utf_iscomposing(c))
99b86a7
  		{
99b86a7
  		    vungetc(c);		/* it wasn't, put it back */
99b86a7
***************
99b86a7
*** 4564,4570 ****
99b86a7
  #endif
99b86a7
  	    ++no_mapping;
99b86a7
  	    ++allow_keys;   /* no mapping for nchar, but allow key codes */
99b86a7
! 	    nchar = safe_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  	    LANGMAP_ADJUST(nchar, TRUE);
99b86a7
  #endif
99b86a7
--- 4564,4570 ----
99b86a7
  #endif
99b86a7
  	    ++no_mapping;
99b86a7
  	    ++allow_keys;   /* no mapping for nchar, but allow key codes */
99b86a7
! 	    nchar = plain_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  	    LANGMAP_ADJUST(nchar, TRUE);
99b86a7
  #endif
99b86a7
***************
99b86a7
*** 4922,4928 ****
99b86a7
      case 'u':	/* "zug" and "zuw": undo "zg" and "zw" */
99b86a7
  		++no_mapping;
99b86a7
  		++allow_keys;   /* no mapping for nchar, but allow key codes */
99b86a7
! 		nchar = safe_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  		LANGMAP_ADJUST(nchar, TRUE);
99b86a7
  #endif
99b86a7
--- 4922,4928 ----
99b86a7
      case 'u':	/* "zug" and "zuw": undo "zg" and "zw" */
99b86a7
  		++no_mapping;
99b86a7
  		++allow_keys;   /* no mapping for nchar, but allow key codes */
99b86a7
! 		nchar = plain_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  		LANGMAP_ADJUST(nchar, TRUE);
99b86a7
  #endif
99b86a7
*** ../vim-7.1.103/src/proto/getchar.pro	Sun May  6 15:04:24 2007
99b86a7
--- src/proto/getchar.pro	Thu Sep 13 16:13:19 2007
99b86a7
***************
99b86a7
*** 38,43 ****
99b86a7
--- 38,44 ----
99b86a7
  void updatescript __ARGS((int c));
99b86a7
  int vgetc __ARGS((void));
99b86a7
  int safe_vgetc __ARGS((void));
99b86a7
+ int plain_vgetc __ARGS((void));
99b86a7
  int vpeekc __ARGS((void));
99b86a7
  int vpeekc_nomap __ARGS((void));
99b86a7
  int vpeekc_any __ARGS((void));
99b86a7
*** ../vim-7.1.103/src/window.c	Sun Aug 12 16:55:01 2007
99b86a7
--- src/window.c	Thu Sep 13 16:25:01 2007
99b86a7
***************
99b86a7
*** 584,590 ****
99b86a7
  		++no_mapping;
99b86a7
  		++allow_keys;   /* no mapping for xchar, but allow key codes */
99b86a7
  		if (xchar == NUL)
99b86a7
! 		    xchar = safe_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  		LANGMAP_ADJUST(xchar, TRUE);
99b86a7
  #endif
99b86a7
--- 584,590 ----
99b86a7
  		++no_mapping;
99b86a7
  		++allow_keys;   /* no mapping for xchar, but allow key codes */
99b86a7
  		if (xchar == NUL)
99b86a7
! 		    xchar = plain_vgetc();
99b86a7
  #ifdef FEAT_LANGMAP
99b86a7
  		LANGMAP_ADJUST(xchar, TRUE);
99b86a7
  #endif
99b86a7
*** ../vim-7.1.103/src/version.c	Thu Sep 13 15:33:18 2007
99b86a7
--- src/version.c	Thu Sep 13 18:22:59 2007
99b86a7
***************
99b86a7
*** 668,669 ****
99b86a7
--- 668,671 ----
99b86a7
  {   /* Add new patch number below this line */
99b86a7
+ /**/
99b86a7
+     104,
99b86a7
  /**/
99b86a7
99b86a7
-- 
99b86a7
ARTHUR:  I am your king!
99b86a7
WOMAN:   Well, I didn't vote for you.
99b86a7
ARTHUR:  You don't vote for kings.
99b86a7
WOMAN:   Well, 'ow did you become king then?
99b86a7
                                  The Quest for the Holy Grail (Monty Python)
99b86a7
99b86a7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
99b86a7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
99b86a7
\\\        download, build and distribute -- http://www.A-A-P.org        ///
99b86a7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///