From 176a291ed284f854b380c8681a6b42466b926be0 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sat, 21 Jan 2017 20:23:06 -0800 Subject: [PATCH] deal with multiline commands which have flags Fixes #3758 --- share/functions/edit_command_buffer.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/edit_command_buffer.fish b/share/functions/edit_command_buffer.fish index afeff4d10..c46f11e20 100644 --- a/share/functions/edit_command_buffer.fish +++ b/share/functions/edit_command_buffer.fish @@ -33,7 +33,7 @@ function edit_command_buffer --description 'Edit the command buffer in an extern if test $status -eq 0 -a -s $f # Set the command to the output of the edited command and move the cursor to the # end of the edited command. - commandline -r (cat $f) + commandline -r -- (cat $f) commandline -C 999999 else echo