Re: PopUp drawings problem
- Alexey Froloff wrote:
> 1. set copt=menuThat is intentional. When you pick one of the entries the text further
> 2. enter a very long line that didn't fit width of vim window
> (more than two times longer).
> 3. move cursor at position about one and a half of window width.
> 4. start completion so popup menu shows
> Depending on 'wrap' option you will see:
> wrap: - popup menu is horizontally aligned with current word but
> top of popup is on next line of file, not screen line.
on in the line will move left-right. Having the menu on top of that
> nowrap: - popup menu is show at the very right edge of vim windowThat's a bug. Fix:
> (not even a buffer window in case of vsplit).
--- edit.c 25 Jan 2006 22:08:27 -0000 1.51
+++ edit.c 28 Jan 2006 15:32:27 -0000
@@ -2266,7 +2266,7 @@
pum_display(compl_match_array, compl_match_arraysize, cur,
curwin->w_cline_row + W_WINROW(curwin),
- curwin->w_wcol + W_WINCOL(curwin));
+ curwin->w_wcol + W_WINCOL(curwin) - curwin->w_leftcol);
curwin->w_cursor.col = col;
Press any key to continue, press any other key to quit.
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://www.ICCF.nl ///