Karsten Hopp e0dd54
To: vim-dev@vim.org
Karsten Hopp e0dd54
Subject: Patch 7.2.289
Karsten Hopp e0dd54
Fcc: outbox
Karsten Hopp e0dd54
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp e0dd54
Mime-Version: 1.0
Karsten Hopp e0dd54
Content-Type: text/plain; charset=UTF-8
Karsten Hopp e0dd54
Content-Transfer-Encoding: 8bit
Karsten Hopp e0dd54
------------
Karsten Hopp e0dd54
Karsten Hopp e0dd54
Patch 7.2.289
Karsten Hopp e0dd54
Problem:    Checking wrong struct member.
Karsten Hopp e0dd54
Solution:   Change tb_buf to tb_noremap. (Dominique Pelle)
Karsten Hopp e0dd54
Files:	    src/getchar.c
Karsten Hopp e0dd54
Karsten Hopp e0dd54
Karsten Hopp e0dd54
*** ../vim-7.2.288/src/getchar.c	2009-09-30 15:15:33.000000000 +0200
Karsten Hopp e0dd54
--- src/getchar.c	2009-11-11 12:50:58.000000000 +0100
Karsten Hopp e0dd54
***************
Karsten Hopp e0dd54
*** 22,28 ****
Karsten Hopp e0dd54
   * These buffers are used for storing:
Karsten Hopp e0dd54
   * - stuffed characters: A command that is translated into another command.
Karsten Hopp e0dd54
   * - redo characters: will redo the last change.
Karsten Hopp e0dd54
!  * - recorded chracters: for the "q" command.
Karsten Hopp e0dd54
   *
Karsten Hopp e0dd54
   * The bytes are stored like in the typeahead buffer:
Karsten Hopp e0dd54
   * - K_SPECIAL introduces a special key (two more bytes follow).  A literal
Karsten Hopp e0dd54
--- 22,28 ----
Karsten Hopp e0dd54
   * These buffers are used for storing:
Karsten Hopp e0dd54
   * - stuffed characters: A command that is translated into another command.
Karsten Hopp e0dd54
   * - redo characters: will redo the last change.
Karsten Hopp e0dd54
!  * - recorded characters: for the "q" command.
Karsten Hopp e0dd54
   *
Karsten Hopp e0dd54
   * The bytes are stored like in the typeahead buffer:
Karsten Hopp e0dd54
   * - K_SPECIAL introduces a special key (two more bytes follow).  A literal
Karsten Hopp e0dd54
***************
Karsten Hopp e0dd54
*** 1283,1289 ****
Karsten Hopp e0dd54
  	EMSG2(_(e_intern2), "Free typebuf 1");
Karsten Hopp e0dd54
      else
Karsten Hopp e0dd54
  	vim_free(typebuf.tb_buf);
Karsten Hopp e0dd54
!     if (typebuf.tb_buf == noremapbuf_init)
Karsten Hopp e0dd54
  	EMSG2(_(e_intern2), "Free typebuf 2");
Karsten Hopp e0dd54
      else
Karsten Hopp e0dd54
  	vim_free(typebuf.tb_noremap);
Karsten Hopp e0dd54
--- 1283,1289 ----
Karsten Hopp e0dd54
  	EMSG2(_(e_intern2), "Free typebuf 1");
Karsten Hopp e0dd54
      else
Karsten Hopp e0dd54
  	vim_free(typebuf.tb_buf);
Karsten Hopp e0dd54
!     if (typebuf.tb_noremap == noremapbuf_init)
Karsten Hopp e0dd54
  	EMSG2(_(e_intern2), "Free typebuf 2");
Karsten Hopp e0dd54
      else
Karsten Hopp e0dd54
  	vim_free(typebuf.tb_noremap);
Karsten Hopp e0dd54
***************
Karsten Hopp e0dd54
*** 1516,1522 ****
Karsten Hopp e0dd54
   * wanted.
Karsten Hopp e0dd54
   * This translates escaped K_SPECIAL and CSI bytes to a K_SPECIAL or CSI byte.
Karsten Hopp e0dd54
   * Collects the bytes of a multibyte character into the whole character.
Karsten Hopp e0dd54
!  * Returns the modifers in the global "mod_mask".
Karsten Hopp e0dd54
   */
Karsten Hopp e0dd54
      int
Karsten Hopp e0dd54
  vgetc()
Karsten Hopp e0dd54
--- 1516,1522 ----
Karsten Hopp e0dd54
   * wanted.
Karsten Hopp e0dd54
   * This translates escaped K_SPECIAL and CSI bytes to a K_SPECIAL or CSI byte.
Karsten Hopp e0dd54
   * Collects the bytes of a multibyte character into the whole character.
Karsten Hopp e0dd54
!  * Returns the modifiers in the global "mod_mask".
Karsten Hopp e0dd54
   */
Karsten Hopp e0dd54
      int
Karsten Hopp e0dd54
  vgetc()
Karsten Hopp e0dd54
***************
Karsten Hopp e0dd54
*** 3320,3326 ****
Karsten Hopp e0dd54
  			    retval = 1;
Karsten Hopp e0dd54
  			    goto theend;
Karsten Hopp e0dd54
  			}
Karsten Hopp e0dd54
! 	    /* An abbrevation cannot contain white space. */
Karsten Hopp e0dd54
  	    for (n = 0; n < len; ++n)
Karsten Hopp e0dd54
  		if (vim_iswhite(keys[n]))
Karsten Hopp e0dd54
  		{
Karsten Hopp e0dd54
--- 3320,3326 ----
Karsten Hopp e0dd54
  			    retval = 1;
Karsten Hopp e0dd54
  			    goto theend;
Karsten Hopp e0dd54
  			}
Karsten Hopp e0dd54
! 	    /* An abbreviation cannot contain white space. */
Karsten Hopp e0dd54
  	    for (n = 0; n < len; ++n)
Karsten Hopp e0dd54
  		if (vim_iswhite(keys[n]))
Karsten Hopp e0dd54
  		{
Karsten Hopp e0dd54
***************
Karsten Hopp e0dd54
*** 4272,4278 ****
Karsten Hopp e0dd54
  
Karsten Hopp e0dd54
      /*
Karsten Hopp e0dd54
       * Check for word before the cursor: If it ends in a keyword char all
Karsten Hopp e0dd54
!      * chars before it must be al keyword chars or non-keyword chars, but not
Karsten Hopp e0dd54
       * white space. If it ends in a non-keyword char we accept any characters
Karsten Hopp e0dd54
       * before it except white space.
Karsten Hopp e0dd54
       */
Karsten Hopp e0dd54
--- 4272,4278 ----
Karsten Hopp e0dd54
  
Karsten Hopp e0dd54
      /*
Karsten Hopp e0dd54
       * Check for word before the cursor: If it ends in a keyword char all
Karsten Hopp e0dd54
!      * chars before it must be keyword chars or non-keyword chars, but not
Karsten Hopp e0dd54
       * white space. If it ends in a non-keyword char we accept any characters
Karsten Hopp e0dd54
       * before it except white space.
Karsten Hopp e0dd54
       */
Karsten Hopp e0dd54
*** ../vim-7.2.288/src/version.c	2009-11-11 15:06:59.000000000 +0100
Karsten Hopp e0dd54
--- src/version.c	2009-11-11 16:19:12.000000000 +0100
Karsten Hopp e0dd54
***************
Karsten Hopp e0dd54
*** 683,684 ****
Karsten Hopp e0dd54
--- 683,686 ----
Karsten Hopp e0dd54
  {   /* Add new patch number below this line */
Karsten Hopp e0dd54
+ /**/
Karsten Hopp e0dd54
+     289,
Karsten Hopp e0dd54
  /**/
Karsten Hopp e0dd54
Karsten Hopp e0dd54
-- 
Karsten Hopp e0dd54
A M00se once bit my sister ...
Karsten Hopp e0dd54
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp e0dd54
Karsten Hopp e0dd54
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp e0dd54
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp e0dd54
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp e0dd54
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///