mirror of
https://github.com/tmux/tmux.git
synced 2026-07-03 10:12:31 +00:00
Update prompt test.
This commit is contained in:
@@ -131,11 +131,14 @@ $IN send-keys -l "Z" || exit 1
|
|||||||
settle
|
settle
|
||||||
search_is "hello Z" "C-w did not kill a word"
|
search_is "hello Z" "C-w did not kill a word"
|
||||||
|
|
||||||
# C-a then C-k kills the whole line.
|
# C-a then C-k kills the whole line. The mode prompt no longer fills the rest
|
||||||
|
# of the row, so insert a marker to distinguish prompt input from tree content
|
||||||
|
# that may remain visible after the prompt.
|
||||||
$IN send-keys C-a || exit 1
|
$IN send-keys C-a || exit 1
|
||||||
$IN send-keys C-k || exit 1
|
$IN send-keys C-k || exit 1
|
||||||
|
$IN send-keys -l "X" || exit 1
|
||||||
settle
|
settle
|
||||||
search_row | grep -q '(search) [^ ]' && fail "C-a C-k did not clear the line"
|
search_is "X" "C-a C-k did not clear the line"
|
||||||
|
|
||||||
# --- 3. Editing kept the prompt open the whole time. ---
|
# --- 3. Editing kept the prompt open the whole time. ---
|
||||||
in_tree_mode || fail "editing keys closed the mode"
|
in_tree_mode || fail "editing keys closed the mode"
|
||||||
|
|||||||
Reference in New Issue
Block a user