lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
d80376b
To: vim-dev@vim.org
d80376b
Subject: Patch 7.0.034
d80376b
Fcc: outbox
d80376b
From: Bram Moolenaar <Bram@moolenaar.net>
d80376b
Mime-Version: 1.0
d80376b
Content-Type: text/plain; charset=ISO-8859-1
d80376b
Content-Transfer-Encoding: 8bit
d80376b
------------
d80376b
d80376b
Patch 7.0.034
d80376b
Problem:    After doing completion and typing more characters or using BS
d80376b
	    repeating with "." didn't work properly. (Martin Stubenschrott)
d80376b
Solution:   Don't put BS and other characters in the redo buffer right away,
d80376b
	    do this when finishing completion.
d80376b
Files:	    src/edit.c
d80376b
d80376b
d80376b
*** ../vim-7.0.033/src/edit.c	Thu Jun 22 16:48:43 2006
d80376b
--- src/edit.c	Fri Jun 23 17:50:47 2006
d80376b
***************
d80376b
*** 3020,3028 ****
d80376b
      if ((int)(p - line) - (int)compl_col <= 0)
d80376b
  	return K_BS;
d80376b
  
d80376b
-     /* For redo we need to repeat this backspace. */
d80376b
-     AppendCharToRedobuff(K_BS);
d80376b
- 
d80376b
      /* Deleted more than what was used to find matches or didn't finish
d80376b
       * finding all matches: need to look for matches all over again. */
d80376b
      if (curwin->w_cursor.col <= compl_col + compl_length
d80376b
--- 3020,3025 ----
d80376b
***************
d80376b
*** 3121,3130 ****
d80376b
      else
d80376b
  #endif
d80376b
  	ins_char(c);
d80376b
- 
d80376b
-     /* For redo we need to count this character so that the number of
d80376b
-      * backspaces is correct. */
d80376b
-     AppendCharToRedobuff(c);
d80376b
  
d80376b
      /* If we didn't complete finding matches we must search again. */
d80376b
      if (compl_was_interrupted)
d80376b
--- 3118,3123 ----
d80376b
*** ../vim-7.0.033/src/version.c	Fri Jun 23 17:26:02 2006
d80376b
--- src/version.c	Fri Jun 23 17:59:04 2006
d80376b
***************
d80376b
*** 668,669 ****
d80376b
--- 668,671 ----
d80376b
  {   /* Add new patch number below this line */
d80376b
+ /**/
d80376b
+     34,
d80376b
  /**/
d80376b
d80376b
-- 
d80376b
A parent can be arrested if his child cannot hold back a burp during a church
d80376b
service.
d80376b
		[real standing law in Nebraska, United States of America]
d80376b
d80376b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
d80376b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
d80376b
\\\        download, build and distribute -- http://www.A-A-P.org        ///
d80376b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///