mirror of
https://github.com/tmux/tmux.git
synced 2026-10-11 04:44:25 +00:00
Merge branch 'obsd-master'
This commit is contained in:
6
window.c
6
window.c
@@ -1612,6 +1612,12 @@ window_pane_key(struct window_pane *wp, struct client *c, struct session *s,
|
|||||||
|
|
||||||
wme = TAILQ_FIRST(&wp->modes);
|
wme = TAILQ_FIRST(&wp->modes);
|
||||||
if (wme != NULL) {
|
if (wme != NULL) {
|
||||||
|
/*
|
||||||
|
* No mode uses mouse motion events, so drop them here rather
|
||||||
|
* than passing them on and causing a redraw on every movement.
|
||||||
|
*/
|
||||||
|
if (KEYC_IS_TYPE(key, KEYC_TYPE_MOUSEMOVE))
|
||||||
|
return (0);
|
||||||
if (wme->mode->key != NULL && c != NULL) {
|
if (wme->mode->key != NULL && c != NULL) {
|
||||||
key &= ~KEYC_MASK_FLAGS;
|
key &= ~KEYC_MASK_FLAGS;
|
||||||
wme->mode->key(wme, c, s, wl, key, m);
|
wme->mode->key(wme, c, s, wl, key, m);
|
||||||
|
|||||||
Reference in New Issue
Block a user