mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-16 23:12:45 +08:00
functions/funced: harmonize interpretation of VISUAL/EDITOR
Like other tools, we split $EDITOR by spaces and remove backslashes in Alt+e and Alt+o but not in funced. Let's' fix this inconsistency.
This commit is contained in:
parent
a9618477ec
commit
5f459446a8
|
@ -35,9 +35,9 @@ function funced --description 'Edit function definition'
|
|||
else if set -q _flag_editor
|
||||
set editor $_flag_editor
|
||||
else if set -q VISUAL
|
||||
set editor $VISUAL
|
||||
echo $VISUAL | read -at editor
|
||||
else if set -q EDITOR
|
||||
set editor $EDITOR
|
||||
echo $EDITOR | read -at editor
|
||||
else
|
||||
set editor fish
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user