Mercurial > vim
diff src/mouse.c @ 28923:2d726d5a6405 v8.2.4984
patch 8.2.4984: dragging statusline fails for window with winbar
Commit: https://github.com/vim/vim/commit/6dab00aa5417f62f8c2c85c7c4ae871b4f1171f4
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri May 20 13:45:59 2022 +0100
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 https://github.com/vim/vim/issues/10448)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 20 May 2022 15:00:05 +0200 |
parents | d0241e74bfdb |
children | 6cdf55afaae9 |
line wrap: on
line diff
--- 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;