Karsten Hopp a96069
To: vim_dev@googlegroups.com
Karsten Hopp a96069
Subject: Patch 7.3.566
Karsten Hopp a96069
Fcc: outbox
Karsten Hopp a96069
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp a96069
Mime-Version: 1.0
Karsten Hopp a96069
Content-Type: text/plain; charset=UTF-8
Karsten Hopp a96069
Content-Transfer-Encoding: 8bit
Karsten Hopp a96069
------------
Karsten Hopp a96069
Karsten Hopp a96069
Patch 7.3.566 (after 7.3.561)
Karsten Hopp a96069
Problem:    Redo after completion does not work correctly when refresh: always
Karsten Hopp a96069
	    is not used. (Raymond Ko)
Karsten Hopp a96069
Solution:   Check the compl_opt_refresh_always flag. (Christian Brabandt)
Karsten Hopp a96069
Files:	    src/edit.c
Karsten Hopp a96069
Karsten Hopp a96069
Karsten Hopp a96069
*** ../vim-7.3.565/src/edit.c	2012-06-20 14:26:30.000000000 +0200
Karsten Hopp a96069
--- src/edit.c	2012-06-20 22:52:03.000000000 +0200
Karsten Hopp a96069
***************
Karsten Hopp a96069
*** 3467,3479 ****
Karsten Hopp a96069
  	(*mb_char2bytes)(c, buf);
Karsten Hopp a96069
  	buf[cc] = NUL;
Karsten Hopp a96069
  	ins_char_bytes(buf, cc);
Karsten Hopp a96069
! 	AppendToRedobuff(buf);
Karsten Hopp a96069
      }
Karsten Hopp a96069
      else
Karsten Hopp a96069
  #endif
Karsten Hopp a96069
      {
Karsten Hopp a96069
  	ins_char(c);
Karsten Hopp a96069
! 	AppendCharToRedobuff(c);
Karsten Hopp a96069
      }
Karsten Hopp a96069
  
Karsten Hopp a96069
      /* If we didn't complete finding matches we must search again. */
Karsten Hopp a96069
--- 3467,3481 ----
Karsten Hopp a96069
  	(*mb_char2bytes)(c, buf);
Karsten Hopp a96069
  	buf[cc] = NUL;
Karsten Hopp a96069
  	ins_char_bytes(buf, cc);
Karsten Hopp a96069
! 	if (compl_opt_refresh_always)
Karsten Hopp a96069
! 	    AppendToRedobuff(buf);
Karsten Hopp a96069
      }
Karsten Hopp a96069
      else
Karsten Hopp a96069
  #endif
Karsten Hopp a96069
      {
Karsten Hopp a96069
  	ins_char(c);
Karsten Hopp a96069
! 	if (compl_opt_refresh_always)
Karsten Hopp a96069
! 	    AppendCharToRedobuff(c);
Karsten Hopp a96069
      }
Karsten Hopp a96069
  
Karsten Hopp a96069
      /* If we didn't complete finding matches we must search again. */
Karsten Hopp a96069
***************
Karsten Hopp a96069
*** 3481,3487 ****
Karsten Hopp a96069
  	ins_compl_restart();
Karsten Hopp a96069
  
Karsten Hopp a96069
      /* When 'always' is set, don't reset compl_leader. While completing,
Karsten Hopp a96069
!      * cursor don't point original position, changing compl_leader would
Karsten Hopp a96069
       * break redo. */
Karsten Hopp a96069
      if (!compl_opt_refresh_always)
Karsten Hopp a96069
      {
Karsten Hopp a96069
--- 3483,3489 ----
Karsten Hopp a96069
  	ins_compl_restart();
Karsten Hopp a96069
  
Karsten Hopp a96069
      /* When 'always' is set, don't reset compl_leader. While completing,
Karsten Hopp a96069
!      * cursor doesn't point original position, changing compl_leader would
Karsten Hopp a96069
       * break redo. */
Karsten Hopp a96069
      if (!compl_opt_refresh_always)
Karsten Hopp a96069
      {
Karsten Hopp a96069
*** ../vim-7.3.565/src/version.c	2012-06-20 18:39:12.000000000 +0200
Karsten Hopp a96069
--- src/version.c	2012-06-20 22:54:27.000000000 +0200
Karsten Hopp a96069
***************
Karsten Hopp a96069
*** 716,717 ****
Karsten Hopp a96069
--- 716,719 ----
Karsten Hopp a96069
  {   /* Add new patch number below this line */
Karsten Hopp a96069
+ /**/
Karsten Hopp a96069
+     566,
Karsten Hopp a96069
  /**/
Karsten Hopp a96069
Karsten Hopp a96069
-- 
Karsten Hopp a96069
CVS sux, men don't like commitment
Karsten Hopp a96069
Karsten Hopp a96069
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp a96069
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp a96069
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp a96069
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///