diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-05-20 13:45:59 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-20 13:45:59 +0100 |
commit | 6dab00aa5417f62f8c2c85c7c4ae871b4f1171f4 (patch) | |
tree | 42b5898c0eeb45d5282aaff24d65dc30b34a1421 /src/mouse.c | |
parent | b0855f5324b348921d412d97193e8c8bc3b5d1dd (diff) |
patch 8.2.4984: dragging statusline fails for window with winbarv8.2.4984
Problem: Dragging statusline fails for window with winbar.
Solution: Fix off-by-one error. (closes #10448)
Diffstat (limited to 'src/mouse.c')
-rw-r--r-- | src/mouse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mouse.c b/src/mouse.c index af9186d72f..58c4ab4ec6 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -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; |