Skip to content

Commit 46377b8

Browse files
grotaalerque
authored andcommitted
Escape the text sent to tmux
Closes #76
1 parent 8fa6ca9 commit 46377b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/vimux.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function! VimuxRunCommand(command, ...)
5353
endfunction
5454

5555
function! VimuxSendText(text)
56-
call VimuxSendKeys('"'.escape(a:text, '\"$`').'"')
56+
call VimuxSendKeys(shellescape(substitute(a:text, "\n$", " ", "")))
5757
endfunction
5858

5959
function! VimuxSendKeys(keys)

0 commit comments

Comments
 (0)