Mercurial > vim
comparison src/normal.c @ 12487:3f16cf18386c v8.0.1123
patch 8.0.1123: cannot define a toolbar for a window
commit https://github.com/vim/vim/commit/1b9645de3c05f37b5c30e78f999351b0cf486ade
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 17 23:03:31 2017 +0200
patch 8.0.1123: cannot define a toolbar for a window
Problem: Cannot define a toolbar for a window.
Solution: Add a window-local toolbar.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 17 Sep 2017 23:15:04 +0200 |
parents | 68d7bc045dbe |
children | 972ea22c946f |
comparison
equal
deleted
inserted
replaced
12486:be9971c7a226 | 12487:3f16cf18386c |
---|---|
2677 /* | 2677 /* |
2678 * set MOUSE_MAY_STOP_VIS if we are outside the | 2678 * set MOUSE_MAY_STOP_VIS if we are outside the |
2679 * selection or the current window (might have false | 2679 * selection or the current window (might have false |
2680 * negative here) | 2680 * negative here) |
2681 */ | 2681 */ |
2682 if (mouse_row < W_WINROW(curwin) | 2682 if (mouse_row < curwin->w_winrow |
2683 || mouse_row | 2683 || mouse_row |
2684 > (W_WINROW(curwin) + curwin->w_height)) | 2684 > (curwin->w_winrow + curwin->w_height)) |
2685 jump_flags = MOUSE_MAY_STOP_VIS; | 2685 jump_flags = MOUSE_MAY_STOP_VIS; |
2686 else if (get_fpos_of_mouse(&m_pos) != IN_BUFFER) | 2686 else if (get_fpos_of_mouse(&m_pos) != IN_BUFFER) |
2687 jump_flags = MOUSE_MAY_STOP_VIS; | 2687 jump_flags = MOUSE_MAY_STOP_VIS; |
2688 else | 2688 else |
2689 { | 2689 { |