Mercurial > vim
changeset 12984:fc0d4a036654 v8.0.1368
patch 8.0.1368: cannot drag status or separator of new terminal window
commit https://github.com/vim/vim/commit/ce6179c799468e471c3b7fc71c9924f57a2253c5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 5 13:06:16 2017 +0100
patch 8.0.1368: cannot drag status or separator of new terminal window
Problem: Cannot drag status line or vertical separator of new terminal
window. (UncleBill)
Solution: Adjust mouse row and column computation. (Yasuhiro Matsumoto,
closes #2410)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 05 Dec 2017 13:15:05 +0100 |
parents | 7a9c4a8b1ceb |
children | a1775dd0e979 |
files | src/terminal.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/terminal.c +++ b/src/terminal.c @@ -1308,12 +1308,13 @@ send_keys_to_term(term_T *term, int c, i case K_MOUSELEFT: case K_MOUSERIGHT: if (mouse_row < W_WINROW(curwin) - || mouse_row > (W_WINROW(curwin) + curwin->w_height) + || mouse_row >= (W_WINROW(curwin) + curwin->w_height) || mouse_col < curwin->w_wincol - || mouse_col > W_ENDCOL(curwin) + || mouse_col >= W_ENDCOL(curwin) || dragging_outside) { - /* click or scroll outside the current window */ + /* click or scroll outside the current window or on status line + * or vertical separator */ if (typed) { stuffcharReadbuff(c);