From 288819c9cc8620fdb749721618bd43c479a9e500 Mon Sep 17 00:00:00 2001 From: Famiu Haque Date: Wed, 18 May 2022 21:15:34 +0600 Subject: fix(ui): set correct position on mouse click when 'winbar' is enabled --- src/nvim/mouse.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/nvim/mouse.c b/src/nvim/mouse.c index 3a1cc6b557..ad17bfc8a9 100644 --- a/src/nvim/mouse.c +++ b/src/nvim/mouse.c @@ -406,6 +406,9 @@ bool mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump) if (win->w_p_rl) { col = win->w_width_inner - 1 - col; } + if (win->w_winbar_height) { + row -= win->w_winbar_height; + } lnum = win->w_topline; -- cgit