commit 233391d1ac4b8d21a1a1dc3031d791e42a27d107
parent 9112dc325724593510fe6254893d293e66e9a8a9
Author: Ed van Bruggen <edvb54@gmail.com>
Date: Tue, 1 Nov 2016 18:56:40 -0700
Stop echo from adding newline at end of files/bufs
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/dmenu.vim b/plugin/dmenu.vim
@@ -37,7 +37,7 @@ endfunction
" launches dmenu with input and opens selection with given vim cmd
function! s:dmenu_open(input, cmd)
- let file = system('echo -e "' . a:input . '" | ' . g:dmenu_cmd . ' -p :' . a:cmd)
+ let file = system('echo -ne "' . a:input . '" | ' . g:dmenu_cmd . ' -p :' . a:cmd)
if !empty(file)
execute a:cmd . ' ' . file
endif