Karsten Hopp 812f19
To: vim-dev@vim.org
Karsten Hopp 812f19
Subject: Patch 7.1.210
Karsten Hopp 812f19
Fcc: outbox
Karsten Hopp 812f19
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 812f19
Mime-Version: 1.0
Karsten Hopp 812f19
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 812f19
Content-Transfer-Encoding: 8bit
Karsten Hopp 812f19
------------
Karsten Hopp 812f19
Karsten Hopp 812f19
Patch 7.1.210
Karsten Hopp 812f19
Problem:    Listing mapping for 0xdb fails when 'encoding' is utf-8. (Tony
Karsten Hopp 812f19
	    Mechelynck)
Karsten Hopp 812f19
Solution:   Recognize K_SPECIAL KS_EXTRA KE_CSI as a CSI byte.
Karsten Hopp 812f19
Files:	    src/mbyte.c
Karsten Hopp 812f19
Karsten Hopp 812f19
Karsten Hopp 812f19
*** ../vim-7.1.209/src/mbyte.c	Fri Jan  4 17:46:46 2008
Karsten Hopp 812f19
--- src/mbyte.c	Sun Jan  6 17:13:51 2008
Karsten Hopp 812f19
***************
Karsten Hopp 812f19
*** 2863,2877 ****
Karsten Hopp 812f19
  	    buf[m++] = K_SPECIAL;
Karsten Hopp 812f19
  	    n += 2;
Karsten Hopp 812f19
  	}
Karsten Hopp 812f19
  # ifdef FEAT_GUI
Karsten Hopp 812f19
! 	else if (str[n] == CSI
Karsten Hopp 812f19
  		&& str[n + 1] == KS_EXTRA
Karsten Hopp 812f19
  		&& str[n + 2] == (int)KE_CSI)
Karsten Hopp 812f19
  	{
Karsten Hopp 812f19
  	    buf[m++] = CSI;
Karsten Hopp 812f19
  	    n += 2;
Karsten Hopp 812f19
  	}
Karsten Hopp 812f19
- # endif
Karsten Hopp 812f19
  	else if (str[n] == K_SPECIAL
Karsten Hopp 812f19
  # ifdef FEAT_GUI
Karsten Hopp 812f19
  		|| str[n] == CSI
Karsten Hopp 812f19
--- 2882,2898 ----
Karsten Hopp 812f19
  	    buf[m++] = K_SPECIAL;
Karsten Hopp 812f19
  	    n += 2;
Karsten Hopp 812f19
  	}
Karsten Hopp 812f19
+ 	else if ((str[n] == K_SPECIAL
Karsten Hopp 812f19
  # ifdef FEAT_GUI
Karsten Hopp 812f19
! 		    || str[n] == CSI
Karsten Hopp 812f19
! # endif
Karsten Hopp 812f19
! 		 )
Karsten Hopp 812f19
  		&& str[n + 1] == KS_EXTRA
Karsten Hopp 812f19
  		&& str[n + 2] == (int)KE_CSI)
Karsten Hopp 812f19
  	{
Karsten Hopp 812f19
  	    buf[m++] = CSI;
Karsten Hopp 812f19
  	    n += 2;
Karsten Hopp 812f19
  	}
Karsten Hopp 812f19
  	else if (str[n] == K_SPECIAL
Karsten Hopp 812f19
  # ifdef FEAT_GUI
Karsten Hopp 812f19
  		|| str[n] == CSI
Karsten Hopp 812f19
*** ../vim-7.1.209/src/version.c	Sun Jan  6 15:16:12 2008
Karsten Hopp 812f19
--- src/version.c	Sun Jan  6 17:17:25 2008
Karsten Hopp 812f19
***************
Karsten Hopp 812f19
*** 668,669 ****
Karsten Hopp 812f19
--- 668,671 ----
Karsten Hopp 812f19
  {   /* Add new patch number below this line */
Karsten Hopp 812f19
+ /**/
Karsten Hopp 812f19
+     210,
Karsten Hopp 812f19
  /**/
Karsten Hopp 812f19
Karsten Hopp 812f19
-- 
Karsten Hopp 812f19
ARTHUR:        A scratch?  Your arm's off!
Karsten Hopp 812f19
BLACK KNIGHT:  No, it isn't.
Karsten Hopp 812f19
ARTHUR:        Well, what's that then?
Karsten Hopp 812f19
BLACK KNIGHT:  I've had worse.
Karsten Hopp 812f19
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp 812f19
Karsten Hopp 812f19
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 812f19
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 812f19
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 812f19
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///