Hari Krishna Dara wrote:

> When maps for mouse clicks are executed, can we have the location (in
> the form of line and column number) made available through v: variables?
> I just observed that getchar() works even with mouse clicks, but this is
> almost useless without knowing where the user clicked. Capturing mouse
> clicks along with <expr> maps or getchar() can do wonders if the mouse
> click position is also available.

Good point, getchar() should somehow make the position of the click
available.

It's not that easy, since the click could be in any of the windows.  I
suppose we need:
        v:mouse_window
        v:mouse_column
        v:mouse_line

The position could be in screen columns and lines, or in text column and
line.  I suppose text position is more useful.  You wouldn't need the
position of a click halfway a tab, right?

-- 
hundred-and-one symptoms of being an internet addict:
87. Everyone you know asks why your phone line is always busy ...and
    you tell them to send an e-mail.

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