Skip to content
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

Double semi-colons not escaped correctly #88

Closed
libanp opened this issue Oct 20, 2013 · 2 comments
Closed

Double semi-colons not escaped correctly #88

libanp opened this issue Oct 20, 2013 · 2 comments

Comments

@libanp
Copy link

libanp commented Oct 20, 2013

I'm trying to use vimux with OCaml, so I make heavy use of double semi-colons (;;) at the end of lines.

Initially one of the semi-colons would get dropped. I edited

call VimuxSendKeys('"'.escape(a:text, '"').'"')

To

call VimuxSendKeys('"'.escape(a:text, '";`').'"')

However now ;; comes out as ;;

So I'm stuck getting either a single ; or ;; which OCaml won't accept.

@libanp
Copy link
Author

libanp commented Oct 20, 2013

Ok, I've got a fairly ugly fix, if you want I can submit a pull request:

Changed
call VimuxSendKeys('"'.escape(a:text, '"').'"')

to
call VimuxSendKeys('"'.escape(substitute(a:text, ";$", ";;", ""), '"').'"')`

I also added ` to the escaped characters because they would cause errors.

@alerque
Copy link
Member

alerque commented Feb 13, 2021

This should be resolved in 46377b8.

@alerque alerque closed this as completed Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants