tmux:yank: Copy also in view-mode

This commit is contained in:
2025-03-24 18:35:53 +01:00
parent a396df8cea
commit 071c2866e5

View File

@@ -14,7 +14,7 @@ command_prompt() {
} }
mode="$(get_var pane_mode)" mode="$(get_var pane_mode)"
if [ "$mode" != copy-mode ]; then if [ "$mode" != copy-mode ] && [ "$mode" != view-mode ]; then
>&2 printf "%s: Not in copy mode\n" "$0" >&2 printf "%s: Not in copy mode\n" "$0"
exit 1 exit 1
fi fi