mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue