Keep copy-mode -c active for the entire visit

This commit is contained in:
Michael Grant
2026-10-05 19:20:26 +01:00
parent 6137fd04e9
commit ca35e3f820
4 changed files with 58 additions and 44 deletions

View File

@@ -179,6 +179,27 @@ for entry_line in 'prompt> ' ' '; do
fi
x cancel
done
# Returning to the entry mark must not reenable EOL following.
$TMUX copy-mode -c || fail "copy-mode -c failed"
x cursor-up
check_cursor 8,2
x jump-to-mark
check_cursor 8,3
$TMUX copy-mode || fail "second copy-mode failed"
x cursor-up
check_cursor 8,2
x cancel
# A new ordinary visit restores the default. Adding -c to an already
# active visit does not change its policy.
$TMUX copy-mode || fail "copy-mode failed"
$TMUX copy-mode -c || fail "second copy-mode -c failed"
x cursor-up
end=20
[ "$mode" = emacs ] || end=19
check_cursor "$end,2"
x cancel
done
done