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

Invalid expression in generated vim script #212

Closed
tyru opened this issue Mar 30, 2018 · 0 comments
Closed

Invalid expression in generated vim script #212

tyru opened this issue Mar 30, 2018 · 0 comments

Comments

@tyru
Copy link
Member

tyru commented Mar 30, 2018

Invalid expression should occur when lazy loading is failed.

volt/plugconf/plugconf.go

Lines 323 to 328 in 8f2139f

if exists(':' . a:command) isnot# 2
echohl ErrorMsg
echomsg printf('[volt] Lazy loading of Ex command '%s' failed: '%s' is not found', a:command, a:command)
echohl None
return
endif

The single quotes around %s are in another single quotes.
So that should be escaped like ''%s''.

@tyru tyru added the bug label Mar 30, 2018
@tyru tyru closed this as completed in 4470ba1 Mar 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant