|
Karsten Hopp |
dd421e |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
dd421e |
Subject: Patch 7.3.404
|
|
Karsten Hopp |
dd421e |
Fcc: outbox
|
|
Karsten Hopp |
dd421e |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
dd421e |
Mime-Version: 1.0
|
|
Karsten Hopp |
dd421e |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
dd421e |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
dd421e |
------------
|
|
Karsten Hopp |
dd421e |
|
|
Karsten Hopp |
dd421e |
Patch 7.3.404
|
|
Karsten Hopp |
dd421e |
Problem: When a complete function uses refresh "always" redo will not work
|
|
Karsten Hopp |
dd421e |
properly.
|
|
Karsten Hopp |
dd421e |
Solution: Do not reset compl_leader when compl_opt_refresh_always is set.
|
|
Karsten Hopp |
dd421e |
(Yasuhiro Matsumoto)
|
|
Karsten Hopp |
dd421e |
Files: src/edit.c
|
|
Karsten Hopp |
dd421e |
|
|
Karsten Hopp |
dd421e |
|
|
Karsten Hopp |
dd421e |
*** ../vim-7.3.403/src/edit.c 2012-01-10 22:26:12.000000000 +0100
|
|
Karsten Hopp |
dd421e |
--- src/edit.c 2012-01-20 14:26:06.000000000 +0100
|
|
Karsten Hopp |
dd421e |
***************
|
|
Karsten Hopp |
dd421e |
*** 3465,3475 ****
|
|
Karsten Hopp |
dd421e |
if (ins_compl_need_restart())
|
|
Karsten Hopp |
dd421e |
ins_compl_restart();
|
|
Karsten Hopp |
dd421e |
|
|
Karsten Hopp |
dd421e |
! vim_free(compl_leader);
|
|
Karsten Hopp |
dd421e |
! compl_leader = vim_strnsave(ml_get_curline() + compl_col,
|
|
Karsten Hopp |
dd421e |
(int)(curwin->w_cursor.col - compl_col));
|
|
Karsten Hopp |
dd421e |
! if (compl_leader != NULL)
|
|
Karsten Hopp |
dd421e |
! ins_compl_new_leader();
|
|
Karsten Hopp |
dd421e |
}
|
|
Karsten Hopp |
dd421e |
|
|
Karsten Hopp |
dd421e |
/*
|
|
Karsten Hopp |
dd421e |
--- 3465,3481 ----
|
|
Karsten Hopp |
dd421e |
if (ins_compl_need_restart())
|
|
Karsten Hopp |
dd421e |
ins_compl_restart();
|
|
Karsten Hopp |
dd421e |
|
|
Karsten Hopp |
dd421e |
! /* When 'always' is set, don't reset compl_leader. While completing,
|
|
Karsten Hopp |
dd421e |
! * cursor don't point original position, changing compl_leader would
|
|
Karsten Hopp |
dd421e |
! * break redo. */
|
|
Karsten Hopp |
dd421e |
! if (!compl_opt_refresh_always)
|
|
Karsten Hopp |
dd421e |
! {
|
|
Karsten Hopp |
dd421e |
! vim_free(compl_leader);
|
|
Karsten Hopp |
dd421e |
! compl_leader = vim_strnsave(ml_get_curline() + compl_col,
|
|
Karsten Hopp |
dd421e |
(int)(curwin->w_cursor.col - compl_col));
|
|
Karsten Hopp |
dd421e |
! if (compl_leader != NULL)
|
|
Karsten Hopp |
dd421e |
! ins_compl_new_leader();
|
|
Karsten Hopp |
dd421e |
! }
|
|
Karsten Hopp |
dd421e |
}
|
|
Karsten Hopp |
dd421e |
|
|
Karsten Hopp |
dd421e |
/*
|
|
Karsten Hopp |
dd421e |
***************
|
|
Karsten Hopp |
dd421e |
*** 4554,4559 ****
|
|
Karsten Hopp |
dd421e |
--- 4560,4570 ----
|
|
Karsten Hopp |
dd421e |
int found_end = FALSE;
|
|
Karsten Hopp |
dd421e |
int advance;
|
|
Karsten Hopp |
dd421e |
|
|
Karsten Hopp |
dd421e |
+ /* When user complete function return -1 for findstart which is next
|
|
Karsten Hopp |
dd421e |
+ * time of 'always', compl_shown_match become NULL. */
|
|
Karsten Hopp |
dd421e |
+ if (compl_shown_match == NULL)
|
|
Karsten Hopp |
dd421e |
+ return -1;
|
|
Karsten Hopp |
dd421e |
+
|
|
Karsten Hopp |
dd421e |
if (compl_leader != NULL
|
|
Karsten Hopp |
dd421e |
&& (compl_shown_match->cp_flags & ORIGINAL_TEXT) == 0)
|
|
Karsten Hopp |
dd421e |
{
|
|
Karsten Hopp |
dd421e |
*** ../vim-7.3.403/src/version.c 2012-01-20 13:39:03.000000000 +0100
|
|
Karsten Hopp |
dd421e |
--- src/version.c 2012-01-20 14:31:26.000000000 +0100
|
|
Karsten Hopp |
dd421e |
***************
|
|
Karsten Hopp |
dd421e |
*** 716,717 ****
|
|
Karsten Hopp |
dd421e |
--- 716,719 ----
|
|
Karsten Hopp |
dd421e |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
dd421e |
+ /**/
|
|
Karsten Hopp |
dd421e |
+ 404,
|
|
Karsten Hopp |
dd421e |
/**/
|
|
Karsten Hopp |
dd421e |
|
|
Karsten Hopp |
dd421e |
--
|
|
Karsten Hopp |
dd421e |
ARTHUR: I've said I'm sorry about the old woman, but from the behind you
|
|
Karsten Hopp |
dd421e |
looked ...
|
|
Karsten Hopp |
dd421e |
DENNIS: What I object to is that you automatically treat me like an inferior...
|
|
Karsten Hopp |
dd421e |
ARTHUR: Well ... I AM king.
|
|
Karsten Hopp |
dd421e |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
dd421e |
|
|
Karsten Hopp |
dd421e |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
dd421e |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
dd421e |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
dd421e |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|