Mercurial > vim
comparison src/mouse.c @ 18508:3cd689e9eb7f v8.1.2248
patch 8.1.2248: CTRL-W dot does not work when modifyOtherKeys is enabled
Commit: https://github.com/vim/vim/commit/1e814bc017907209a66af82f8fb76c6d1fc324aa
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 3 21:19:41 2019 +0100
patch 8.1.2248: CTRL-W dot does not work when modifyOtherKeys is enabled
Problem: CTRL-W dot does not work in a terminal when modifyOtherKeys is
enabled.
Solution: Use the modifier when needed. Pass the modifier along with the
key to avoid mistakes.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 03 Nov 2019 21:30:04 +0100 |
parents | 9f51d0cef8da |
children | fa995154904e |
comparison
equal
deleted
inserted
replaced
18507:5cab7eef0829 | 18508:3cd689e9eb7f |
---|---|
2010 { | 2010 { |
2011 # ifdef FEAT_TERMINAL | 2011 # ifdef FEAT_TERMINAL |
2012 if (term_use_loop()) | 2012 if (term_use_loop()) |
2013 // This window is a terminal window, send the mouse event there. | 2013 // This window is a terminal window, send the mouse event there. |
2014 // Set "typed" to FALSE to avoid an endless loop. | 2014 // Set "typed" to FALSE to avoid an endless loop. |
2015 send_keys_to_term(curbuf->b_term, cap->cmdchar, FALSE); | 2015 send_keys_to_term(curbuf->b_term, cap->cmdchar, mod_mask, FALSE); |
2016 else | 2016 else |
2017 # endif | 2017 # endif |
2018 if (mod_mask & (MOD_MASK_SHIFT | MOD_MASK_CTRL)) | 2018 if (mod_mask & (MOD_MASK_SHIFT | MOD_MASK_CTRL)) |
2019 { | 2019 { |
2020 (void)onepage(cap->arg ? FORWARD : BACKWARD, 1L); | 2020 (void)onepage(cap->arg ? FORWARD : BACKWARD, 1L); |