Bug#450481: [Patch] Improved popup-menu alignment

Bram Moolenaar Bram at moolenaar.net
Wed Jul 30 20:43:24 UTC 2008


James -

> When completing a word near the edge of the window, the completion list
> gets truncated if there's not enough room to display the full width.  The
> attached patch adds a condition to the display logic which, if there's
> room, will anchor the right edge of the popup-menu to the cursor
> position instead of the left edge.

Hmm, not sure if this will look right.  The idea is that the completed
word is straight under the replaced word.  And I thought the window was
already moved leftwards to avoid truncation.  Need to look into this,
I'll put it in the todo list.

- Bram

-- 
LAUNCELOT: I am, sir. I am a Knight of King Arthur.
FATHER:    'Mm ... very nice castle, Camelot ... very good pig country....
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- Bram at Moolenaar.net -- 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://ICCF-Holland.org    ///





More information about the pkg-vim-maintainers mailing list