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