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

vim9cmd execute() でコメントがコマンドとして認識される #1426

Open
siaa4fu opened this issue Oct 4, 2023 · 0 comments
Open

Comments

@siaa4fu
Copy link

siaa4fu commented Oct 4, 2023

不具合の内容

execute():vim9cmd を使って vim9script として実行したとき、コメント開始の # がコマンドとして認識されます。
具体的には、下のどちらでも E1082 エラーが発生します。

" (in legacy script)

" errors occur
vim9cmd execute('# comment')
vim9cmd execute(['# comment', 'echo 1'])

ちなみに、 vim9script から (意味はないですが) 同じように呼び出してもエラーが発生します。

vim9script

# no error
execute('# comment')
execute(['# comment', 'echo 1'])

# errors occur
vim9cmd execute('# comment')
vim9cmd execute(['# comment', 'echo 1'])

Vimのバージョン

9.0.1927

OSの種類/ディストリ/バージョン

Windows 10 Home 64bit

その他

関係あるかは分かりませんが vim/vim@3d3f6ac を見つけました。

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

1 participant