fix(mouse): fix popup menu position check with winbar (#23456)

This commit is contained in:
zeertzjq
2023-05-03 10:29:19 +08:00
committed by GitHub
parent a4bb8c37db
commit dc394b9641
3 changed files with 85 additions and 1 deletions

View File

@@ -223,7 +223,7 @@ static int get_fpos_of_mouse(pos_T *mpos)
}
// winpos and height may change in win_enter()!
if (winrow + wp->w_winbar_height >= wp->w_height_inner) { // In (or below) status line
if (winrow >= wp->w_height_inner) { // In (or below) status line
return IN_STATUS_LINE;
}