New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VimuxSendText() escaping #87
Comments
I used this: call VimuxSendKeys("'" . escape(a:text, "'") . "'") Shouldn't this be patched? |
This make it impossible to send a line containing single quotes to shell, for example: echo 'a' I got an error: Error detected while processing function VimSendText..VimSendKeys |
I have rewritten the function in python, and it now works flawlessly:
|
Now try sending a semicolon as the last character. Escaping is nasty. |
This should be addressed by 46377b8. Feel free to comment if this doesn't cover all the possible escaping issues, but I think it will. |
I was having trouble with
VimuxSendText
when the text contained'$'
characters.The function only escapes
'"'
, c.f https://github.com/benmills/vimux/blob/master/plugin/vimux.vim#L45I was luckier with
i.e. call
system
with single quotes and only escape those.Maybe it can be usefull for others (?).
Cheers
The text was updated successfully, but these errors were encountered: