mirror of
https://github.com/tmux/tmux.git
synced 2026-10-10 12:14:43 +00:00
Keep copy-mode -c active for the entire visit
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user