Karsten Hopp 18e2b7
To: vim-dev@vim.org
Karsten Hopp 18e2b7
Subject: Patch 7.0.100
Karsten Hopp 18e2b7
Fcc: outbox
Karsten Hopp 18e2b7
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 18e2b7
Mime-Version: 1.0
Karsten Hopp 18e2b7
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 18e2b7
Content-Transfer-Encoding: 8bit
Karsten Hopp 18e2b7
------------
Karsten Hopp 18e2b7
Karsten Hopp 18e2b7
Patch 7.0.100
Karsten Hopp 18e2b7
Problem:    "zug" may report the wrong filename. (Lawrence Kesteloot)
Karsten Hopp 18e2b7
Solution:   Call home_replace() to fill NameBuff[].
Karsten Hopp 18e2b7
Files:	    src/spell.c
Karsten Hopp 18e2b7
Karsten Hopp 18e2b7
Karsten Hopp 18e2b7
*** ../vim-7.0.099/src/spell.c	Tue Aug 29 17:28:56 2006
Karsten Hopp 18e2b7
--- src/spell.c	Mon Sep 11 20:45:35 2006
Karsten Hopp 18e2b7
***************
Karsten Hopp 18e2b7
*** 1483,1489 ****
Karsten Hopp 18e2b7
  	    else if ((mode == FIND_COMPOUND || mode == FIND_KEEPCOMPOUND
Karsten Hopp 18e2b7
  								|| !word_ends))
Karsten Hopp 18e2b7
  	    {
Karsten Hopp 18e2b7
! 		/* If there is no  flag or the word is shorter than
Karsten Hopp 18e2b7
  		 * COMPOUNDMIN reject it quickly.
Karsten Hopp 18e2b7
  		 * Makes you wonder why someone puts a compound flag on a word
Karsten Hopp 18e2b7
  		 * that's too short...  Myspell compatibility requires this
Karsten Hopp 18e2b7
--- 1483,1489 ----
Karsten Hopp 18e2b7
  	    else if ((mode == FIND_COMPOUND || mode == FIND_KEEPCOMPOUND
Karsten Hopp 18e2b7
  								|| !word_ends))
Karsten Hopp 18e2b7
  	    {
Karsten Hopp 18e2b7
! 		/* If there is no compound flag or the word is shorter than
Karsten Hopp 18e2b7
  		 * COMPOUNDMIN reject it quickly.
Karsten Hopp 18e2b7
  		 * Makes you wonder why someone puts a compound flag on a word
Karsten Hopp 18e2b7
  		 * that's too short...  Myspell compatibility requires this
Karsten Hopp 18e2b7
***************
Karsten Hopp 18e2b7
*** 9336,9342 ****
Karsten Hopp 18e2b7
--- 9336,9345 ----
Karsten Hopp 18e2b7
  		    {
Karsten Hopp 18e2b7
  			fputc('#', fd);
Karsten Hopp 18e2b7
  			if (undo)
Karsten Hopp 18e2b7
+ 			{
Karsten Hopp 18e2b7
+ 			    home_replace(NULL, fname, NameBuff, MAXPATHL, TRUE);
Karsten Hopp 18e2b7
  			    smsg((char_u *)_("Word removed from %s"), NameBuff);
Karsten Hopp 18e2b7
+ 			}
Karsten Hopp 18e2b7
  		    }
Karsten Hopp 18e2b7
  		    fseek(fd, fpos_next, SEEK_SET);
Karsten Hopp 18e2b7
  		}
Karsten Hopp 18e2b7
*** ../vim-7.0.099/src/version.c	Sun Sep 10 21:38:48 2006
Karsten Hopp 18e2b7
--- src/version.c	Mon Sep 11 21:36:13 2006
Karsten Hopp 18e2b7
***************
Karsten Hopp 18e2b7
*** 668,669 ****
Karsten Hopp 18e2b7
--- 668,671 ----
Karsten Hopp 18e2b7
  {   /* Add new patch number below this line */
Karsten Hopp 18e2b7
+ /**/
Karsten Hopp 18e2b7
+     100,
Karsten Hopp 18e2b7
  /**/
Karsten Hopp 18e2b7
Karsten Hopp 18e2b7
-- 
Karsten Hopp 18e2b7
Be nice to your kids...  they'll be the ones choosing your nursing home.
Karsten Hopp 18e2b7
Karsten Hopp 18e2b7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 18e2b7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 18e2b7
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 18e2b7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///