Matt Wozniski wrote:
On Tue, Mar 2, 2010 at 2:43 PM, Charles Campbell <[email protected]> wrote:Bram M came up with a modified test for determining if a mouseclick took place on the status line. It seems to work; I've installed it into netrw v137e (http://mysite.verizon.net/astronaut/vim/index.html#NETRW).For the sake of posterity, what was that method? I'd rather not have to download two copies of netrw, extract them to seperate dirs, and diff them just to find out. ;-)~Matt " check if the status bar was clicked on instead of a file/directory name call feedkeys("\<LeftMouse>") let c= getchar() let mouse_lnum = v:mouse_lnum let wlastline = line('w$') (modified test) let lastline = line('$') ___________^____________ / \ if mouse_lnum >= wlastline + 1 || v:mouse_win != winnr() " appears to be a status bar leftmouse click return endif Chip Campbell -- 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 |
- Unexpected behaviour of File browser in multi-window... Jean Johner
- Re: Unexpected behaviour of File browser in mul... Charles Campbell
- Re: Unexpected behaviour of File browser in... Jean Johner
- Re: Unexpected behaviour of File browse... Charles Campbell
- Re: Unexpected behaviour of File br... Jean Johner
- Re: Unexpected behaviour of Fi... Charles Campbell
- Re: Unexpected behaviour o... Jean Johner
- Re: Unexpected behavio... Jean Johner
- Re: Unexpected behavio... Charles Campbell
- Re: Unexpected behaviour o... Matt Wozniski
- Re: Unexpected behavio... Charles Campbell
- Re: Unexpected behavio... Patrick Texier
- Re: Unexpected behavio... Matt Wozniski
- Re: Unexpected behavio... Tony Mechelynck
- Re: Unexpected behavio... Charles E Campbell Jr
- Re: Unexpected behavio... Tony Mechelynck
- Re: Unexpected behavio... Matt Wozniski
- Re: Unexpected behavio... Charles Campbell
- Re: Unexpected behavio... Patrick Texier
- Re: Unexpected behavio... Antony Scriven
- Re: Unexpected behavio... sc
