24e5e9b
To: vim-dev@vim.org
24e5e9b
Subject: Patch 7.1.181
24e5e9b
Fcc: outbox
24e5e9b
From: Bram Moolenaar <Bram@moolenaar.net>
24e5e9b
Mime-Version: 1.0
24e5e9b
Content-Type: text/plain; charset=ISO-8859-1
24e5e9b
Content-Transfer-Encoding: 8bit
24e5e9b
------------
24e5e9b
24e5e9b
Patch 7.1.181
24e5e9b
Problem:    Accessing uninitialized memory in Farsi mode. (Dominuque Pelle)
24e5e9b
Solution:   Only invoke lrF_sub() when there is something to do.
24e5e9b
Files:	    src/ex_cmds.c
24e5e9b
24e5e9b
24e5e9b
*** ../vim-7.1.180/src/ex_cmds.c	Sun Dec  9 19:37:37 2007
24e5e9b
--- src/ex_cmds.c	Mon Dec 31 17:29:25 2007
24e5e9b
***************
24e5e9b
*** 4212,4222 ****
24e5e9b
  	sub_nlines = 0;
24e5e9b
      }
24e5e9b
  
24e5e9b
- #ifdef FEAT_FKMAP	/* reverse the flow of the Farsi characters */
24e5e9b
-     if (p_altkeymap && curwin->w_p_rl)
24e5e9b
- 	lrF_sub(cmd);
24e5e9b
- #endif
24e5e9b
- 
24e5e9b
      if (eap->cmdidx == CMD_tilde)
24e5e9b
  	which_pat = RE_LAST;	/* use last used regexp */
24e5e9b
      else
24e5e9b
--- 4212,4217 ----
24e5e9b
***************
24e5e9b
*** 4252,4257 ****
24e5e9b
--- 4247,4256 ----
24e5e9b
  	}
24e5e9b
  	else		/* find the end of the regexp */
24e5e9b
  	{
24e5e9b
+ #ifdef FEAT_FKMAP	/* reverse the flow of the Farsi characters */
24e5e9b
+ 	    if (p_altkeymap && curwin->w_p_rl)
24e5e9b
+ 		lrF_sub(cmd);
24e5e9b
+ #endif
24e5e9b
  	    which_pat = RE_LAST;	    /* use last used regexp */
24e5e9b
  	    delimiter = *cmd++;		    /* remember delimiter character */
24e5e9b
  	    pat = cmd;			    /* remember start of search pat */
24e5e9b
*** ../vim-7.1.180/src/version.c	Tue Jan  1 17:37:01 2008
24e5e9b
--- src/version.c	Wed Jan  2 13:57:31 2008
24e5e9b
***************
24e5e9b
*** 668,669 ****
24e5e9b
--- 668,671 ----
24e5e9b
  {   /* Add new patch number below this line */
24e5e9b
+ /**/
24e5e9b
+     181,
24e5e9b
  /**/
24e5e9b
24e5e9b
-- 
24e5e9b
Yah, well, we had to carve our electrons out of driftwood we'd
24e5e9b
find.  In the winter.  Uphill.  Both ways.
24e5e9b
24e5e9b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
24e5e9b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
24e5e9b
\\\        download, build and distribute -- http://www.A-A-P.org        ///
24e5e9b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///