0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4984: dragging statusline fails for window with winbar

Problem:    Dragging statusline fails for window with winbar.
Solution:   Fix off-by-one error. (closes #10448)
This commit is contained in:
zeertzjq
2022-05-20 13:45:59 +01:00
committed by Bram Moolenaar
parent b0855f5324
commit 6dab00aa54
3 changed files with 31 additions and 1 deletions

View File

@@ -1823,7 +1823,7 @@ retnomove:
if (dragwin != NULL)
{
// Drag the status line
count = row - dragwin->w_winrow - dragwin->w_height + 1
count = row - W_WINROW(dragwin) - dragwin->w_height + 1
- on_status_line;
win_drag_status_line(dragwin, count);
did_drag |= count;