diff options
author | tk-shirasaka <tk.shirasaka@gmail.com> | 2021-03-04 21:54:22 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-04 13:54:22 +0100 |
commit | f2fc44d50b511cb3cbffaf9ec4f37d1e7995aac7 (patch) | |
tree | da9787ff94ae774d310436948c7c982eabc1bb23 /src/nvim/normal.c | |
parent | df4440024bb1f1ce368f5e5844d8af925e264b63 (diff) | |
download | rneovim-f2fc44d50b511cb3cbffaf9ec4f37d1e7995aac7.tar.gz rneovim-f2fc44d50b511cb3cbffaf9ec4f37d1e7995aac7.tar.bz2 rneovim-f2fc44d50b511cb3cbffaf9ec4f37d1e7995aac7.zip |
[RDY] Fix click on foldcolumn if it has tabline (#13982)
* Fix click on foldcolumn if it has tabline
* Fixes to correctly determine if tablie was clicked when multigrid is enabled
* Separate foldcolumn checks into functions
* Add test case for click on foldcolumn with split window
* Fix foldcolumn click used nvim_input() on multigrid enabled
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index d5c92bc3e6..4d8b11f832 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -2404,8 +2404,8 @@ do_mouse ( start_visual.lnum = 0; - /* Check for clicking in the tab page line. */ - if (mouse_row == 0 && firstwin->w_winrow > 0) { + // Check for clicking in the tab page line. + if (mouse_grid <= 1 && mouse_row == 0 && firstwin->w_winrow > 0) { if (is_drag) { if (in_tab_line) { move_tab_to_mouse(); |