Loading ...
Sorry, an error occurred while loading the content.

Re: PopUp drawings problem

Expand Messages
  • Bram Moolenaar
    ... That is intentional. When you pick one of the entries the text further on in the line will move left-right. Having the menu on top of that looks strange.
    Message 1 of 2 , Jan 28, 2006
    • 0 Attachment
      Alexey Froloff wrote:

      > 1. set copt=menu
      > 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.

      That is intentional. When you pick one of the entries the text further
      on in the line will move left-right. Having the menu on top of that
      looks strange.

      > nowrap: - popup menu is show at the very right edge of vim window
      > (not even a buffer window in case of vsplit).

      That's a bug. Fix:

      --- 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_cline_height,
      - 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 ///
    Your message has been successfully submitted and would be delivered to recipients shortly.