François Ingelrest wrote:

> Hi all,
> 
> On Sat, Feb 16, 2008 at 2:24 PM, François Ingelrest <[EMAIL PROTECTED]> wrote:
> > This is with Vim 7.1.251
> >
> >  1) vim -u NONE
> >  2) :set lines=25
> >  3) :set columns=80
> >  4) 150i computer chair<Esc>
> >  5) gg
> >  6) ic<c-n>
> >
> >  The popup menu is displayed below the current real line instead of the
> >  current visible line. Since the real line does not fit on the screen,
> >  it is invisible. Even when it fits on the screen, it's quite strange
> >  to see the popup menu appearing a few lines below the current one. I
> >  guess the current visible line should be used instead.
> 
> This still happens with v7.1.285.
> 
> I've taken a look at the code and the fix consists in one small change
> (see attached patch): setting the height of the current real line to 1
> instead of the number of visible lines, so that the menu always
> appears under the current visible line. I can't believe such an easy
> solution has not been applied before without a good solution, so I'm
> pretty sure I must be missing something. Is there someone that could
> enlighten me on the subject?

The idea is that the rest of the line may contain useful text that you
want to read when selecting an entry from the popup menu.  Obviously
this only works when the line wraps only once or twice.

Perhaps a good compromise is to use 1 when the number of visible lines
is more than 2 or 3.

-- 
hundred-and-one symptoms of being an internet addict:
170. You introduce your wife as "[EMAIL PROTECTED]" and refer to your
     children as "forked processes."

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- 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    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui