aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/funced.fish
diff options
context:
space:
mode:
authorGravatar Grissiom <chaos.proton@gmail.com>2010-09-18 10:18:26 +0800
committerGravatar Grissiom <chaos.proton@gmail.com>2010-09-18 10:18:26 +0800
commit70322077d21ae38bbe503d88e9e4d73ec883a493 (patch)
treed64024c9dde752818a35f865f910e413d8935579 /share/functions/funced.fish
parentf529b2e05725cba0bf9da3ee0feb0b7e3ef2fa5a (diff)
remove trialing spaces #2
Diffstat (limited to 'share/functions/funced.fish')
-rw-r--r--share/functions/funced.fish8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/functions/funced.fish b/share/functions/funced.fish
index dca73d70..5bd54acd 100644
--- a/share/functions/funced.fish
+++ b/share/functions/funced.fish
@@ -14,22 +14,22 @@ function funced --description "Edit function definition"
case '*'
set -l init ''
set -l tmp
-
+
# Shadow IFS here to avoid array splitting in command substitution
- set -l IFS
+ set -l IFS
if functions -q $argv
set init (functions $argv | fish_indent --no-indent)
else
set init function $argv\nend
end
-
+
set -l prompt 'printf "%s%s%s> " (set_color green) '$argv' (set_color normal)'
# Unshadow IFS since the fish_title breaks otherwise
set -e IFS
if read -p $prompt -c "$init" -s cmd
# Shadow IFS _again_ to avoid array splitting in command substitution
- set -l IFS
+ set -l IFS
eval (echo -n $cmd | fish_indent)
end
return 0