-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
vim-patch:8.1.1539,8.1.1543,8.1.1554 for :const from Vim #10313
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
Conversation
This is the first time to import patches into Neovim for me and almost all hunks were not automatically applied by |
@rhysd |
@blueyed Thank you for the advice. Yeah, I also fixed some lint errors. |
@rhysd |
CI only failed on macOS with GCC. I'm investigating the failure.
I'm not sure why it failed, but as far as I read |
That's normal, especially for the macOS. Job and timer tests are flaky on macOS in the spite of the numerous adjustments. My only concern is if these patches depend on older patches that haven't been (fully) ported from Vim. |
This one is a bug in |
Problem: Not easy to define a variable and lock it. Solution: Add ":const". vim/vim@9937a05
Problem: Const test fails with small features. Solution: Don't unlet non-existing variables. vim/vim@b6e3b88
Problem: Docs and tests for :const can be improved. Solution: Improve documentation, add a few more tests. (Ryuichi Hayashida, closes vim/vim#4551) vim/vim@1c196e7
08d0464
to
b5e3010
Compare
I basically agree with the concern. I took care about applying these patches not breaking something, but I'm not 100% sure. The codebase related to these patches seem almost the same as original Vim. The only non-trivial change between Neovim and Vim while applying these patch was Neovim does not implement here document for now.
Above code is valid for Vim but isn't for Neovim. |
@rhysd 8.1.1539 is partially merged because Neovim does not support heredoc yet. :cons[t] [{name1}, {name2}, ...] .= {expr1} |
@janlazo that doc was later corrected in vim/vim@1c196e7 |
Yeah, the line was my mistake when I stole the description from |
I've implemented
:const
to Vim script.I thought these patches should be included in Neovim also for compatibility of Vim script.
This PR imports the patches related to
:const
to Neovim.