Mercurial > vim
comparison src/normal.c @ 11983:448635f73e09 v8.0.0872
patch 8.0.0872: no mouse scroll with a terminal window
commit https://github.com/vim/vim/commit/98fd66d311a62133c835307dc7692763dfa32c69
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 5 19:34:47 2017 +0200
patch 8.0.0872: no mouse scroll with a terminal window
Problem: Using mouse scroll while a terminal window has focus and the mouse
pointer is on another window does not work. Same for focus in a
non-terminal window ahd the mouse pointer is over a terminal
window.
Solution: Send the scroll action to the right window.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 05 Aug 2017 19:45:04 +0200 |
parents | bc0fee081e1e |
children | f2cf5698a93f |
comparison
equal
deleted
inserted
replaced
11982:973099a97aed | 11983:448635f73e09 |
---|---|
4636 } | 4636 } |
4637 # endif | 4637 # endif |
4638 | 4638 |
4639 if (cap->arg == MSCR_UP || cap->arg == MSCR_DOWN) | 4639 if (cap->arg == MSCR_UP || cap->arg == MSCR_DOWN) |
4640 { | 4640 { |
4641 # ifdef FEAT_TERMINAL | |
4642 if (term_use_loop()) | |
4643 send_keys_to_term(curbuf->b_term, cap->cmdchar, TRUE); | |
4644 else | |
4645 # endif | |
4641 if (mod_mask & (MOD_MASK_SHIFT | MOD_MASK_CTRL)) | 4646 if (mod_mask & (MOD_MASK_SHIFT | MOD_MASK_CTRL)) |
4642 { | 4647 { |
4643 (void)onepage(cap->arg ? FORWARD : BACKWARD, 1L); | 4648 (void)onepage(cap->arg ? FORWARD : BACKWARD, 1L); |
4644 } | 4649 } |
4645 else | 4650 else |