mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 10:43:32 +08:00
Tests: Add fish_mode_prompt to except_prompt
Without this, the interactive tests fail when they receive a mode_prompt in vi-mode.
This commit is contained in:
parent
e6ad48ea1b
commit
7ebafa53f6
|
@ -51,7 +51,7 @@ set prompt_counter 1
|
|||
proc expect_prompt {args} {
|
||||
global prompt_counter
|
||||
upvar expect_out expect_out
|
||||
set prompt_pat [list -re "(?:\\r\\n?|^)prompt $prompt_counter>(?:$|\\r)"]
|
||||
set prompt_pat [list -re "(?:\\r\\n?|^)(?:\\\[.\\\] )?prompt $prompt_counter>(?:$|\\r)"]
|
||||
if {[llength $args] == 1 && [string match "\n*" $args]} {
|
||||
set args [join $args]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user