Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
28922:59caeb5508ac | 28923:2d726d5a6405 |
---|---|
1821 else if (on_status_line && which_button == MOUSE_LEFT) | 1821 else if (on_status_line && which_button == MOUSE_LEFT) |
1822 { | 1822 { |
1823 if (dragwin != NULL) | 1823 if (dragwin != NULL) |
1824 { | 1824 { |
1825 // Drag the status line | 1825 // Drag the status line |
1826 count = row - dragwin->w_winrow - dragwin->w_height + 1 | 1826 count = row - W_WINROW(dragwin) - dragwin->w_height + 1 |
1827 - on_status_line; | 1827 - on_status_line; |
1828 win_drag_status_line(dragwin, count); | 1828 win_drag_status_line(dragwin, count); |
1829 did_drag |= count; | 1829 did_drag |= count; |
1830 } | 1830 } |
1831 return IN_STATUS_LINE; // Cursor didn't move | 1831 return IN_STATUS_LINE; // Cursor didn't move |