diff options
author | Munif Tanjim <hello@muniftanjim.dev> | 2022-07-19 04:35:04 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-19 06:35:04 +0800 |
commit | a80d447b47c22985a467ce9d2aaf214e966ca642 (patch) | |
tree | bcb1be6273ee2a38e152d135d76ad22e94e206af /src | |
parent | 3340728c723833c093527b719b25c1cc9efaf598 (diff) | |
download | rneovim-a80d447b47c22985a467ce9d2aaf214e966ca642.tar.gz rneovim-a80d447b47c22985a467ce9d2aaf214e966ca642.tar.bz2 rneovim-a80d447b47c22985a467ce9d2aaf214e966ca642.zip |
fix(mouse): click on global statusline with splits (#19390)
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/normal.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index b675abfb7d..a842bb20a9 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -1908,6 +1908,13 @@ bool do_mouse(oparg_T *oap, int c, int dir, long count, bool fixindent) StlClickDefinition *click_defs = in_status_line ? wp->w_status_click_defs : wp->w_winbar_click_defs; + if (in_status_line && global_stl_height() > 0) { + // global statusline is displayed for the current window, + // and spans the whole screen. + click_defs = curwin->w_status_click_defs; + click_col = mouse_col; + } + if (click_defs != NULL) { switch (click_defs[click_col].type) { case kStlClickDisabled: |