Thursday, January 19, 2012

Re: balloneval: balloonexpr over empty lines

> I noticed that bexpr doesn't seem to get called when the mouse pointer
> hovers over an empty line. This can be easily be tested with:

See below for relevant lines in function get_beval_info in
gui_beval.c. I am not sure we should change this as not all users of
beval might like empty text (esp. users of Netbeans interface).

Out of curiosity, what would you do show for empty lines?

/* Find the word under the cursor. */
++emsg_off;
len = find_ident_at_pos(wp, lnum, (colnr_T)col, &lbuf,
FIND_IDENT + FIND_STRING + FIND_EVAL);
--emsg_off;
if (len == 0) /* <-- !!! empty text */
return FAIL;
lbuf = vim_strnsave(lbuf, len);

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: