From 5f459446a8f20a179b339021083d549cf2e3fd99 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 27 Jan 2024 07:41:52 +0100 Subject: [PATCH] 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. --- share/functions/funced.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/functions/funced.fish b/share/functions/funced.fish index 5757149e2..78e164ffd 100644 --- a/share/functions/funced.fish +++ b/share/functions/funced.fish @@ -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