Mercurial > vim
comparison src/terminal.c @ 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 | 418941f0df08 |
children | 6f98a5fd0c19 |
comparison
equal
deleted
inserted
replaced
12983:7a9c4a8b1ceb | 12984:fc0d4a036654 |
---|---|
1306 case K_MOUSEUP: | 1306 case K_MOUSEUP: |
1307 case K_MOUSEDOWN: | 1307 case K_MOUSEDOWN: |
1308 case K_MOUSELEFT: | 1308 case K_MOUSELEFT: |
1309 case K_MOUSERIGHT: | 1309 case K_MOUSERIGHT: |
1310 if (mouse_row < W_WINROW(curwin) | 1310 if (mouse_row < W_WINROW(curwin) |
1311 || mouse_row > (W_WINROW(curwin) + curwin->w_height) | 1311 || mouse_row >= (W_WINROW(curwin) + curwin->w_height) |
1312 || mouse_col < curwin->w_wincol | 1312 || mouse_col < curwin->w_wincol |
1313 || mouse_col > W_ENDCOL(curwin) | 1313 || mouse_col >= W_ENDCOL(curwin) |
1314 || dragging_outside) | 1314 || dragging_outside) |
1315 { | 1315 { |
1316 /* click or scroll outside the current window */ | 1316 /* click or scroll outside the current window or on status line |
1317 * or vertical separator */ | |
1317 if (typed) | 1318 if (typed) |
1318 { | 1319 { |
1319 stuffcharReadbuff(c); | 1320 stuffcharReadbuff(c); |
1320 mouse_was_outside = TRUE; | 1321 mouse_was_outside = TRUE; |
1321 } | 1322 } |