mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Accept return as a valid answer to 'Edit the file again?'
This commit is contained in:
parent
3df8643c31
commit
4cf480a1a5
1 changed files with 1 additions and 3 deletions
|
@ -105,9 +105,7 @@ function funced --description 'Edit function definition'
|
|||
echo # add a line between the parse error and the prompt
|
||||
set -l repeat
|
||||
set -l prompt (_ 'Edit the file again\? [Y/n]')
|
||||
while test -z "$repeat"
|
||||
read -p "echo $prompt\ " repeat
|
||||
end
|
||||
read -p "echo $prompt\ " repeat
|
||||
if not contains $repeat n N no NO No nO
|
||||
continue
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue