mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +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
82c56bc64b
commit
d0fdc82fdf
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ set prompt_counter 1
|
||||||
proc expect_prompt {args} {
|
proc expect_prompt {args} {
|
||||||
global prompt_counter
|
global prompt_counter
|
||||||
upvar expect_out expect_out
|
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]} {
|
if {[llength $args] == 1 && [string match "\n*" $args]} {
|
||||||
set args [join $args]
|
set args [join $args]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue