mirror of
https://github.com/tmux/tmux.git
synced 2024-12-14 02:48:47 +00:00
Mouse formats don't work in copy mode so don't try to use them.
This commit is contained in:
parent
6f8f4bb206
commit
a74e37d32d
4
format.c
4
format.c
@ -737,6 +737,8 @@ format_cb_mouse_word(struct format_tree *ft, struct format_entry *fe)
|
|||||||
wp = cmd_mouse_pane(&ft->m, NULL, NULL);
|
wp = cmd_mouse_pane(&ft->m, NULL, NULL);
|
||||||
if (wp == NULL)
|
if (wp == NULL)
|
||||||
return;
|
return;
|
||||||
|
if (!TAILQ_EMPTY (&wp->modes))
|
||||||
|
return;
|
||||||
if (cmd_mouse_at(wp, &ft->m, &x, &y, 0) != 0)
|
if (cmd_mouse_at(wp, &ft->m, &x, &y, 0) != 0)
|
||||||
return;
|
return;
|
||||||
gd = wp->base.grid;
|
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);
|
wp = cmd_mouse_pane(&ft->m, NULL, NULL);
|
||||||
if (wp == NULL)
|
if (wp == NULL)
|
||||||
return;
|
return;
|
||||||
|
if (!TAILQ_EMPTY (&wp->modes))
|
||||||
|
return;
|
||||||
if (cmd_mouse_at(wp, &ft->m, &x, &y, 0) != 0)
|
if (cmd_mouse_at(wp, &ft->m, &x, &y, 0) != 0)
|
||||||
return;
|
return;
|
||||||
gd = wp->base.grid;
|
gd = wp->base.grid;
|
||||||
|
Loading…
Reference in New Issue
Block a user