mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +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
|
echo # add a line between the parse error and the prompt
|
||||||
set -l repeat
|
set -l repeat
|
||||||
set -l prompt (_ 'Edit the file again\? [Y/n]')
|
set -l prompt (_ 'Edit the file again\? [Y/n]')
|
||||||
while test -z "$repeat"
|
read -p "echo $prompt\ " repeat
|
||||||
read -p "echo $prompt\ " repeat
|
|
||||||
end
|
|
||||||
if not contains $repeat n N no NO No nO
|
if not contains $repeat n N no NO No nO
|
||||||
continue
|
continue
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue