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.
This commit is contained in:
luukvbaal
2023-01-13 00:36:59 +01:00
committed by GitHub
parent f2141de9e4
commit 4876654d4c
2 changed files with 9 additions and 1 deletions

View File

@@ -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;