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

@@ -688,6 +688,7 @@ key_bindings_dispatch(struct key_binding *bd, struct cmdq_item *item,
readonly = 1;
else
readonly = cmd_list_all_have(bd->cmdlist, CMD_READONLY);
if (!readonly)
new_item = cmdq_get_callback(key_bindings_read_only, NULL);
else {