diff options
author | Konrad Borowski <GlitchMr@users.noreply.github.com> | 2014-03-03 22:17:55 +0100 |
---|---|---|
committer | Konrad Borowski <GlitchMr@users.noreply.github.com> | 2014-03-03 22:17:55 +0100 |
commit | 14867742492f928cd702499da8662d344c144e39 (patch) | |
tree | 5a0883eb510f19e698121f57ae143eb40e327a97 /share/functions/vared.fish | |
parent | d232a0f9512d0e1b575235fdf4119a63353ecedd (diff) |
Force at least one line of output for `set_color`.
This should fix #1323.
Diffstat (limited to 'share/functions/vared.fish')
-rw-r--r-- | share/functions/vared.fish | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/share/functions/vared.fish b/share/functions/vared.fish index fe548dd1..cc9912e7 100644 --- a/share/functions/vared.fish +++ b/share/functions/vared.fish @@ -1,4 +1,3 @@ - # # This is a neat function, stolen from zsh. It allows you to edit the # value of a variable interactively. @@ -39,11 +38,11 @@ function vared --description "Edit variable value" end else - printf (_ '%s: %s is an array variable. Use %svared%s %s[n] to edit the n:th element of %s\n') vared $argv (set_color $fish_color_command) (set_color $fish_color_normal) $argv $argv + printf (_ '%s: %s is an array variable. Use %svared%s %s[n] to edit the n:th element of %s\n') vared $argv (set_color $fish_color_command; echo) (set_color $fish_color_normal; echo) $argv $argv end end else - printf (_ '%s: Expected exactly one argument, got %s.\n\nSynopsis:\n\t%svared%s VARIABLE\n') vared (count $argv) (set_color $fish_color_command) (set_color $fish_color_normal) + printf (_ '%s: Expected exactly one argument, got %s.\n\nSynopsis:\n\t%svared%s VARIABLE\n') vared (count $argv) (set_color $fish_color_command; echo) (set_color $fish_color_normal; echo) end end |