4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: In some situations the popup menu can be displayed wrong.
12 Solution: Remove the popup menu if the cursor moved. (Lech Lorens)
16 *** ../vim-7.2.389/src/edit.c 2010-01-19 14:59:14.000000000 +0100
17 --- src/edit.c 2010-03-10 14:09:56.000000000 +0100
21 int startcol = 0; /* column where searched text starts */
22 colnr_T curs_col; /* cursor column */
26 compl_direction = ins_compl_key2dir(c);
32 * Find next match (and following matches).
34 + save_w_wrow = curwin->w_wrow;
35 n = ins_compl_next(TRUE, ins_compl_key2count(c), ins_compl_use_match(c));
37 /* may undisplay the popup menu */
41 /* RedrawingDisabled may be set when invoked through complete(). */
42 n = RedrawingDisabled;
43 RedrawingDisabled = 0;
45 + /* If the cursor moved we need to remove the pum first. */
47 + if (save_w_wrow != curwin->w_wrow)
48 + ins_compl_del_pum();
52 RedrawingDisabled = n;
53 *** ../vim-7.2.389/src/version.c 2010-03-10 13:43:22.000000000 +0100
54 --- src/version.c 2010-03-10 14:13:55.000000000 +0100
58 { /* Add new patch number below this line */
64 `When any government, or any church for that matter, undertakes to say to
65 its subjects, "This you may not read, this you must not see, this you are
66 forbidden to know," the end result is tyranny and oppression no matter how
67 holy the motives' -- Robert A Heinlein, "If this goes on --"
69 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
70 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
71 \\\ download, build and distribute -- http://www.A-A-P.org ///
72 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///