diff options
author | nicm <nicm> | 2020-04-10 07:44:26 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-10 07:44:26 +0000 |
commit | c0602f357d7b48ab830f93b446cb1830c5df7a0f (patch) | |
tree | 11b8275c72d23606de28e5104e5d78d0a51fcd0e /tmux.h | |
parent | a1fc8f8b23bf6371877ff93e123b735d2c7d596d (diff) | |
download | rtmux-c0602f357d7b48ab830f93b446cb1830c5df7a0f.tar.gz rtmux-c0602f357d7b48ab830f93b446cb1830c5df7a0f.tar.bz2 rtmux-c0602f357d7b48ab830f93b446cb1830c5df7a0f.zip |
Now that copy mode copies the pane content rather than keeping a
reference to it, it isn't necessary that the pane in copy mode is the
same as the one copying from. Add a -s flag to copy-mode to specify a
different pane for the source content. This means it is possible to view
two places in a pane's history at the same time in different panes, or
copy from a pane's history into an editor or shell in the same pane.
From Anindya Mukherjee.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -848,6 +848,7 @@ struct window_mode { /* Active window mode. */ struct window_mode_entry { struct window_pane *wp; + struct window_pane *swp; const struct window_mode *mode; void *data; @@ -2537,8 +2538,8 @@ void window_pane_unset_palette(struct window_pane *, u_int); void window_pane_reset_palette(struct window_pane *); int window_pane_get_palette(struct window_pane *, int); int window_pane_set_mode(struct window_pane *, - const struct window_mode *, struct cmd_find_state *, - struct args *); + struct window_pane *, const struct window_mode *, + struct cmd_find_state *, struct args *); void window_pane_reset_mode(struct window_pane *); void window_pane_reset_mode_all(struct window_pane *); int window_pane_key(struct window_pane *, struct client *, |