mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Apply same menu items to view mode like copy mode.
This commit is contained in:
6
format.c
6
format.c
@ -1021,7 +1021,8 @@ format_cb_mouse_word(struct format_tree *ft, struct format_entry *fe)
|
||||
return;
|
||||
|
||||
if (!TAILQ_EMPTY(&wp->modes)) {
|
||||
if (TAILQ_FIRST(&wp->modes)->mode == &window_copy_mode)
|
||||
if (TAILQ_FIRST(&wp->modes)->mode == &window_copy_mode ||
|
||||
TAILQ_FIRST(&wp->modes)->mode == &window_view_mode)
|
||||
s = window_copy_get_word(wp, x, y);
|
||||
else
|
||||
s = NULL;
|
||||
@ -1077,7 +1078,8 @@ format_cb_mouse_line(struct format_tree *ft, struct format_entry *fe)
|
||||
return;
|
||||
|
||||
if (!TAILQ_EMPTY(&wp->modes)) {
|
||||
if (TAILQ_FIRST(&wp->modes)->mode == &window_copy_mode)
|
||||
if (TAILQ_FIRST(&wp->modes)->mode == &window_copy_mode ||
|
||||
TAILQ_FIRST(&wp->modes)->mode == &window_view_mode)
|
||||
s = window_copy_get_line(wp, y);
|
||||
else
|
||||
s = NULL;
|
||||
|
Reference in New Issue
Block a user