aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluukvbaal <31730729+luukvbaal@users.noreply.github.com>2023-01-13 00:36:59 +0100
committerGitHub <noreply@github.com>2023-01-13 07:36:59 +0800
commit4876654d4cc9bb43f266c7c9d412f36ab57fa571 (patch)
treeaff6358145125fefcbb631cc6c14d6a6acdbedb0 /src
parentf2141de9e462ed8976b2a59337c32a0fcba2a11d (diff)
downloadrneovim-4876654d4cc9bb43f266c7c9d412f36ab57fa571.tar.gz
rneovim-4876654d4cc9bb43f266c7c9d412f36ab57fa571.tar.bz2
rneovim-4876654d4cc9bb43f266c7c9d412f36ab57fa571.zip
fix(mouse): statusline click registered as statuscolumn (#21748)
fix(statuscolumn): statusline click registered as statuscolumn Problem: Status line click is registered as status status column click. Solution: Check that mouse is not on the status line. Resolve https://github.com/luukvbaal/statuscol.nvim/issues/4.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/mouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/mouse.c b/src/nvim/mouse.c
index ee8c553cd5..a87143fe12 100644
--- a/src/nvim/mouse.c
+++ b/src/nvim/mouse.c
@@ -1110,7 +1110,7 @@ retnomove:
? wp->w_winbar_height != 0
: false;
- on_statuscol = (grid == (col < win_col_off(wp)))
+ on_statuscol = !on_status_line && !on_winbar && col < win_col_off(wp)
? *wp->w_p_stc != NUL
: false;