]> git.pld-linux.org Git - packages/vim.git/blob - 7.2.390
- new
[packages/vim.git] / 7.2.390
1 To: vim-dev@vim.org
2 Subject: Patch 7.2.390
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.2.390
11 Problem:    In some situations the popup menu can be displayed wrong.
12 Solution:   Remove the popup menu if the cursor moved. (Lech Lorens)
13 Files:      src/edit.c
14
15
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
18 ***************
19 *** 4684,4689 ****
20 --- 4684,4690 ----
21       int               startcol = 0;       /* column where searched text starts */
22       colnr_T   curs_col;           /* cursor column */
23       int               n;
24 +     int               save_w_wrow;
25   
26       compl_direction = ins_compl_key2dir(c);
27       if (!compl_started)
28 ***************
29 *** 5067,5072 ****
30 --- 5068,5074 ----
31       /*
32        * Find next match (and following matches).
33        */
34 +     save_w_wrow = curwin->w_wrow;
35       n = ins_compl_next(TRUE, ins_compl_key2count(c), ins_compl_use_match(c));
36   
37       /* may undisplay the popup menu */
38 ***************
39 *** 5220,5225 ****
40 --- 5222,5233 ----
41         /* RedrawingDisabled may be set when invoked through complete(). */
42         n = RedrawingDisabled;
43         RedrawingDisabled = 0;
44
45 +       /* If the cursor moved we need to remove the pum first. */
46 +       setcursor();
47 +       if (save_w_wrow != curwin->w_wrow)
48 +           ins_compl_del_pum();
49
50         ins_compl_show_pum();
51         setcursor();
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
55 ***************
56 *** 683,684 ****
57 --- 683,686 ----
58   {   /* Add new patch number below this line */
59 + /**/
60 +     390,
61   /**/
62
63 -- 
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 --"
68
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    ///
This page took 0.052473 seconds and 3 git commands to generate.