Karsten Hopp ff10d2
To: vim-dev@vim.org
Karsten Hopp ff10d2
Subject: Patch 7.0.089
Karsten Hopp ff10d2
Fcc: outbox
Karsten Hopp ff10d2
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp ff10d2
Mime-Version: 1.0
Karsten Hopp ff10d2
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp ff10d2
Content-Transfer-Encoding: 8bit
Karsten Hopp ff10d2
------------
Karsten Hopp ff10d2
Karsten Hopp ff10d2
Patch 7.0.089
Karsten Hopp ff10d2
Problem:    "ga" does not work properly for a non-Unicode multi-byte encoding.
Karsten Hopp ff10d2
Solution:   Only check for composing chars for utf-8. (Taro Muraoka)
Karsten Hopp ff10d2
Files:	    src/ex_cmds.c
Karsten Hopp ff10d2
Karsten Hopp ff10d2
Karsten Hopp ff10d2
*** ../vim-7.0.088/src/ex_cmds.c	Tue Sep  5 16:29:38 2006
Karsten Hopp ff10d2
--- src/ex_cmds.c	Tue Sep  5 18:12:41 2006
Karsten Hopp ff10d2
***************
Karsten Hopp ff10d2
*** 95,101 ****
Karsten Hopp ff10d2
  		_("<%s>%s%s  %d,  Hex %02x,  Octal %03o"),
Karsten Hopp ff10d2
  					   transchar(c), buf1, buf2, c, c, c);
Karsten Hopp ff10d2
  #ifdef FEAT_MBYTE
Karsten Hopp ff10d2
! 	c = cc[ci++];
Karsten Hopp ff10d2
  #endif
Karsten Hopp ff10d2
      }
Karsten Hopp ff10d2
  
Karsten Hopp ff10d2
--- 95,104 ----
Karsten Hopp ff10d2
  		_("<%s>%s%s  %d,  Hex %02x,  Octal %03o"),
Karsten Hopp ff10d2
  					   transchar(c), buf1, buf2, c, c, c);
Karsten Hopp ff10d2
  #ifdef FEAT_MBYTE
Karsten Hopp ff10d2
! 	if (enc_utf8)
Karsten Hopp ff10d2
! 	    c = cc[ci++];
Karsten Hopp ff10d2
! 	else
Karsten Hopp ff10d2
! 	    c = 0;
Karsten Hopp ff10d2
  #endif
Karsten Hopp ff10d2
      }
Karsten Hopp ff10d2
  
Karsten Hopp ff10d2
***************
Karsten Hopp ff10d2
*** 108,114 ****
Karsten Hopp ff10d2
  	if (len > 0)
Karsten Hopp ff10d2
  	    IObuff[len++] = ' ';
Karsten Hopp ff10d2
  	IObuff[len++] = '<';
Karsten Hopp ff10d2
! 	if (utf_iscomposing(c)
Karsten Hopp ff10d2
  # ifdef USE_GUI
Karsten Hopp ff10d2
  		&& !gui.in_use
Karsten Hopp ff10d2
  # endif
Karsten Hopp ff10d2
--- 111,117 ----
Karsten Hopp ff10d2
  	if (len > 0)
Karsten Hopp ff10d2
  	    IObuff[len++] = ' ';
Karsten Hopp ff10d2
  	IObuff[len++] = '<';
Karsten Hopp ff10d2
! 	if (enc_utf8 && utf_iscomposing(c)
Karsten Hopp ff10d2
  # ifdef USE_GUI
Karsten Hopp ff10d2
  		&& !gui.in_use
Karsten Hopp ff10d2
  # endif
Karsten Hopp ff10d2
***************
Karsten Hopp ff10d2
*** 120,126 ****
Karsten Hopp ff10d2
  				    : _("> %d, Hex %08x, Octal %o"), c, c, c);
Karsten Hopp ff10d2
  	if (ci == MAX_MCO)
Karsten Hopp ff10d2
  	    break;
Karsten Hopp ff10d2
! 	c = cc[ci++];
Karsten Hopp ff10d2
      }
Karsten Hopp ff10d2
  #endif
Karsten Hopp ff10d2
  
Karsten Hopp ff10d2
--- 123,132 ----
Karsten Hopp ff10d2
  				    : _("> %d, Hex %08x, Octal %o"), c, c, c);
Karsten Hopp ff10d2
  	if (ci == MAX_MCO)
Karsten Hopp ff10d2
  	    break;
Karsten Hopp ff10d2
! 	if (enc_utf8)
Karsten Hopp ff10d2
! 	    c = cc[ci++];
Karsten Hopp ff10d2
! 	else
Karsten Hopp ff10d2
! 	    c = 0;
Karsten Hopp ff10d2
      }
Karsten Hopp ff10d2
  #endif
Karsten Hopp ff10d2
  
Karsten Hopp ff10d2
*** ../vim-7.0.088/src/version.c	Tue Sep  5 17:30:25 2006
Karsten Hopp ff10d2
--- src/version.c	Tue Sep  5 18:19:42 2006
Karsten Hopp ff10d2
***************
Karsten Hopp ff10d2
*** 668,669 ****
Karsten Hopp ff10d2
--- 668,671 ----
Karsten Hopp ff10d2
  {   /* Add new patch number below this line */
Karsten Hopp ff10d2
+ /**/
Karsten Hopp ff10d2
+     89,
Karsten Hopp ff10d2
  /**/
Karsten Hopp ff10d2
Karsten Hopp ff10d2
-- 
Karsten Hopp ff10d2
    [clop clop]
Karsten Hopp ff10d2
GUARD #1:  Halt!  Who goes there?
Karsten Hopp ff10d2
ARTHUR:    It is I, Arthur, son of Uther Pendragon, from the castle of
Karsten Hopp ff10d2
           Camelot.  King of the Britons, defeator of the Saxons, sovereign of
Karsten Hopp ff10d2
           all England!
Karsten Hopp ff10d2
GUARD #1:  Pull the other one!
Karsten Hopp ff10d2
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp ff10d2
Karsten Hopp ff10d2
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp ff10d2
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp ff10d2
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp ff10d2
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///