From 1a4e64ba69c7c5f287558333b3acb0e98e767081 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 20 Mar 2020 18:35:53 +0000 Subject: Apply same menu items to view mode like copy mode. --- format.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'format.c') diff --git a/format.c b/format.c index ef69b9b7..da241c48 100644 --- a/format.c +++ b/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; -- cgit