|
Karsten Hopp |
3e025d |
To: vim-dev@vim.org
|
|
Karsten Hopp |
3e025d |
Subject: Patch 7.2.390
|
|
Karsten Hopp |
3e025d |
Fcc: outbox
|
|
Karsten Hopp |
3e025d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
3e025d |
Mime-Version: 1.0
|
|
Karsten Hopp |
3e025d |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
3e025d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
3e025d |
------------
|
|
Karsten Hopp |
3e025d |
|
|
Karsten Hopp |
3e025d |
Patch 7.2.390
|
|
Karsten Hopp |
3e025d |
Problem: In some situations the popup menu can be displayed wrong.
|
|
Karsten Hopp |
3e025d |
Solution: Remove the popup menu if the cursor moved. (Lech Lorens)
|
|
Karsten Hopp |
3e025d |
Files: src/edit.c
|
|
Karsten Hopp |
3e025d |
|
|
Karsten Hopp |
3e025d |
|
|
Karsten Hopp |
3e025d |
*** ../vim-7.2.389/src/edit.c 2010-01-19 14:59:14.000000000 +0100
|
|
Karsten Hopp |
3e025d |
--- src/edit.c 2010-03-10 14:09:56.000000000 +0100
|
|
Karsten Hopp |
3e025d |
***************
|
|
Karsten Hopp |
3e025d |
*** 4684,4689 ****
|
|
Karsten Hopp |
3e025d |
--- 4684,4690 ----
|
|
Karsten Hopp |
3e025d |
int startcol = 0; /* column where searched text starts */
|
|
Karsten Hopp |
3e025d |
colnr_T curs_col; /* cursor column */
|
|
Karsten Hopp |
3e025d |
int n;
|
|
Karsten Hopp |
3e025d |
+ int save_w_wrow;
|
|
Karsten Hopp |
3e025d |
|
|
Karsten Hopp |
3e025d |
compl_direction = ins_compl_key2dir(c);
|
|
Karsten Hopp |
3e025d |
if (!compl_started)
|
|
Karsten Hopp |
3e025d |
***************
|
|
Karsten Hopp |
3e025d |
*** 5067,5072 ****
|
|
Karsten Hopp |
3e025d |
--- 5068,5074 ----
|
|
Karsten Hopp |
3e025d |
/*
|
|
Karsten Hopp |
3e025d |
* Find next match (and following matches).
|
|
Karsten Hopp |
3e025d |
*/
|
|
Karsten Hopp |
3e025d |
+ save_w_wrow = curwin->w_wrow;
|
|
Karsten Hopp |
3e025d |
n = ins_compl_next(TRUE, ins_compl_key2count(c), ins_compl_use_match(c));
|
|
Karsten Hopp |
3e025d |
|
|
Karsten Hopp |
3e025d |
/* may undisplay the popup menu */
|
|
Karsten Hopp |
3e025d |
***************
|
|
Karsten Hopp |
3e025d |
*** 5220,5225 ****
|
|
Karsten Hopp |
3e025d |
--- 5222,5233 ----
|
|
Karsten Hopp |
3e025d |
/* RedrawingDisabled may be set when invoked through complete(). */
|
|
Karsten Hopp |
3e025d |
n = RedrawingDisabled;
|
|
Karsten Hopp |
3e025d |
RedrawingDisabled = 0;
|
|
Karsten Hopp |
3e025d |
+
|
|
Karsten Hopp |
3e025d |
+ /* If the cursor moved we need to remove the pum first. */
|
|
Karsten Hopp |
3e025d |
+ setcursor();
|
|
Karsten Hopp |
3e025d |
+ if (save_w_wrow != curwin->w_wrow)
|
|
Karsten Hopp |
3e025d |
+ ins_compl_del_pum();
|
|
Karsten Hopp |
3e025d |
+
|
|
Karsten Hopp |
3e025d |
ins_compl_show_pum();
|
|
Karsten Hopp |
3e025d |
setcursor();
|
|
Karsten Hopp |
3e025d |
RedrawingDisabled = n;
|
|
Karsten Hopp |
3e025d |
*** ../vim-7.2.389/src/version.c 2010-03-10 13:43:22.000000000 +0100
|
|
Karsten Hopp |
3e025d |
--- src/version.c 2010-03-10 14:13:55.000000000 +0100
|
|
Karsten Hopp |
3e025d |
***************
|
|
Karsten Hopp |
3e025d |
*** 683,684 ****
|
|
Karsten Hopp |
3e025d |
--- 683,686 ----
|
|
Karsten Hopp |
3e025d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
3e025d |
+ /**/
|
|
Karsten Hopp |
3e025d |
+ 390,
|
|
Karsten Hopp |
3e025d |
/**/
|
|
Karsten Hopp |
3e025d |
|
|
Karsten Hopp |
3e025d |
--
|
|
Karsten Hopp |
3e025d |
`When any government, or any church for that matter, undertakes to say to
|
|
Karsten Hopp |
3e025d |
its subjects, "This you may not read, this you must not see, this you are
|
|
Karsten Hopp |
3e025d |
forbidden to know," the end result is tyranny and oppression no matter how
|
|
Karsten Hopp |
3e025d |
holy the motives' -- Robert A Heinlein, "If this goes on --"
|
|
Karsten Hopp |
3e025d |
|
|
Karsten Hopp |
3e025d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
3e025d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
3e025d |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
3e025d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|