Karsten Hopp 75ee63
To: vim-dev@vim.org
Karsten Hopp 75ee63
Subject: Patch 7.2.322
Karsten Hopp 75ee63
Fcc: outbox
Karsten Hopp 75ee63
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 75ee63
Mime-Version: 1.0
Karsten Hopp 75ee63
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 75ee63
Content-Transfer-Encoding: 8bit
Karsten Hopp 75ee63
------------
Karsten Hopp 75ee63
Karsten Hopp 75ee63
Patch 7.2.322
Karsten Hopp 75ee63
Problem:    Wrong indenting in virtual replace mode with CTRL-Y below a short
Karsten Hopp 75ee63
	    line.
Karsten Hopp 75ee63
Solution:   Check for character to be NUL. (suggested by Lech Lorens)
Karsten Hopp 75ee63
Files:	    src/edit.c
Karsten Hopp 75ee63
Karsten Hopp 75ee63
Karsten Hopp 75ee63
*** ../vim-7.2.321/src/edit.c	2009-11-17 17:40:34.000000000 +0100
Karsten Hopp 75ee63
--- src/edit.c	2009-12-24 15:18:23.000000000 +0100
Karsten Hopp 75ee63
***************
Karsten Hopp 75ee63
*** 7397,7402 ****
Karsten Hopp 75ee63
--- 7397,7406 ----
Karsten Hopp 75ee63
      int		icase;
Karsten Hopp 75ee63
      int		i;
Karsten Hopp 75ee63
  
Karsten Hopp 75ee63
+     if (keytyped == NUL)
Karsten Hopp 75ee63
+ 	/* Can happen with CTRL-Y and CTRL-E on a short line. */
Karsten Hopp 75ee63
+ 	return FALSE;
Karsten Hopp 75ee63
+ 
Karsten Hopp 75ee63
  #ifdef FEAT_EVAL
Karsten Hopp 75ee63
      if (*curbuf->b_p_inde != NUL)
Karsten Hopp 75ee63
  	look = curbuf->b_p_indk;	/* 'indentexpr' set: use 'indentkeys' */
Karsten Hopp 75ee63
*** ../vim-7.2.321/src/version.c	2009-12-24 15:00:31.000000000 +0100
Karsten Hopp 75ee63
--- src/version.c	2009-12-24 15:44:46.000000000 +0100
Karsten Hopp 75ee63
***************
Karsten Hopp 75ee63
*** 683,684 ****
Karsten Hopp 75ee63
--- 683,686 ----
Karsten Hopp 75ee63
  {   /* Add new patch number below this line */
Karsten Hopp 75ee63
+ /**/
Karsten Hopp 75ee63
+     322,
Karsten Hopp 75ee63
  /**/
Karsten Hopp 75ee63
Karsten Hopp 75ee63
-- 
Karsten Hopp 75ee63
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 75ee63
45. You buy a Captain Kirk chair with a built-in keyboard and mouse.
Karsten Hopp 75ee63
Karsten Hopp 75ee63
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 75ee63
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 75ee63
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 75ee63
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///