-
Notifications
You must be signed in to change notification settings - Fork 771
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
The CommentaryTextObject in commentary no longer contains spaces. #1097
base: master
Are you sure you want to change the base?
Conversation
Hi, thank you for your contribution! Can you please add some tests for your case in |
Since blank lines are no longer regarded as comments, the following several test methods cannot pass. Can I modify the contents of both "Expected" and "Actual"?
|
This depends if the new behavior matches the behavior of the vim-commentary extension. You can install the plugin on Vim and check if it works the same. |
Yes, in the vim-commentary plugin, the empty lines above and below the comment are also considered as part of the comment. However, in neoVim, this is not the case. Neovim does not consider the empty lines above and below the comment as part of the comment. For example, in the following text, if the cursor is on the first line, when you press // commentary1
// commentary2 |
Okay, I see what you mean. |
CommentaryTextObject no longer contains spaces to be consistent with neovim