Accept return as a valid answer to 'Edit the file again?'

This commit is contained in:
sentriz 2017-08-12 00:09:13 +01:00 committed by Kurtis Rader
parent 3df8643c31
commit 4cf480a1a5

View file

@ -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