Allow copy mode to work for readonly clients, except for copy commands,

from Dane Jensen.
This commit is contained in:
nicm
2026-03-03 12:26:14 +00:00
parent 77ce0a837d
commit 49bb43047d
4 changed files with 110 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ const struct cmd_entry cmd_copy_mode_entry = {
.source = { 's', CMD_FIND_PANE, 0 },
.target = { 't', CMD_FIND_PANE, 0 },
.flags = CMD_AFTERHOOK,
.flags = CMD_AFTERHOOK|CMD_READONLY,
.exec = cmd_copy_mode_exec
};