Christian J. Robinson wrote:

> Today (Sun, 18 Jun 2006), Bram Moolenaar wrote:
> 
> >>  :echo inputlist(['foo', 'bar', 'baz'])
> >> 
> >> If I click on "foo" I get -1, "bar" I get 0, and "baz" it acts like
> >> I want to start highlighting text.
> > 
> > It works fine for me.  Any idea why it doesn't work for you?
> 
> I tracked it down.  It works as it should when 'cmdheight' is 1, but
> for each value above that each entry returns one less than it should,
> and one less entry at the "bottom" is even clickable for each
> increment above that.
> 
> For example:
> 
> :set cmdheight=3
> :echomsg inputlist([1,2,3,4,5])
> 
> 5 and 4 won't even be clickable, 3 returns 0, 2 returns -1, 1 returns
> -2.  If you immediately re-run the inputlist command without hitting
> enter at the "Press ENTER" prompt the return values are correct,
> except 5 and 4 still aren't clickable.

Ah, setting 'cmdheight' causes a problem.  I'll look into that.

-- 
"It's so simple to be wise.  Just think of something stupid to say
and then don't say it."        -- Sam Levenson

 /// 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    ///

Reply via email to