1
0
mirror of https://github.com/openbsd/src.git synced 2025-12-06 16:23:52 +00:00

Allow drag in alternate screen again, GitHub issue 4743 reported by Brad

King.
This commit is contained in:
nicm
2025-12-04 22:50:34 +00:00
parent 02f0dad9e2
commit b31ab32b43

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: key-bindings.c,v 1.156 2025/10/29 09:33:20 nicm Exp $ */
/* $OpenBSD: key-bindings.c,v 1.157 2025/12/04 22:50:34 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -441,7 +441,7 @@ key_bindings_init(void)
"bind -n MouseDown1Pane { select-pane -t=; send -M }",
/* Mouse button 1 drag on pane. */
"bind -n MouseDrag1Pane { if -F '#{||:#{alternate_on},#{pane_in_mode},#{mouse_any_flag}}' { send -M } { copy-mode -M } }",
"bind -n MouseDrag1Pane { if -F '#{||:#{pane_in_mode},#{mouse_any_flag}}' { send -M } { copy-mode -M } }",
/* Mouse wheel up on pane. */
"bind -n WheelUpPane { if -F '#{||:#{alternate_on},#{pane_in_mode},#{mouse_any_flag}}' { send -M } { copy-mode -e } }",