diff options
author | nicm <nicm> | 2019-09-24 14:50:08 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2019-09-25 15:54:52 +0100 |
commit | a74e37d32d5cd6654444d6517add43e3a91f14f0 (patch) | |
tree | 6dda42fb57844df5db85b41ac10dbff43fb3a6c0 /format.c | |
parent | 6f8f4bb2063ccc72ed665a13215accc72a75d55f (diff) | |
download | rtmux-a74e37d32d5cd6654444d6517add43e3a91f14f0.tar.gz rtmux-a74e37d32d5cd6654444d6517add43e3a91f14f0.tar.bz2 rtmux-a74e37d32d5cd6654444d6517add43e3a91f14f0.zip |
Mouse formats don't work in copy mode so don't try to use them.
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -737,6 +737,8 @@ format_cb_mouse_word(struct format_tree *ft, struct format_entry *fe) wp = cmd_mouse_pane(&ft->m, NULL, NULL); if (wp == NULL) return; + if (!TAILQ_EMPTY (&wp->modes)) + return; if (cmd_mouse_at(wp, &ft->m, &x, &y, 0) != 0) return; gd = wp->base.grid; @@ -813,6 +815,8 @@ format_cb_mouse_line(struct format_tree *ft, struct format_entry *fe) wp = cmd_mouse_pane(&ft->m, NULL, NULL); if (wp == NULL) return; + if (!TAILQ_EMPTY (&wp->modes)) + return; if (cmd_mouse_at(wp, &ft->m, &x, &y, 0) != 0) return; gd = wp->base.grid; |