Clean up cmdline option tab-completion code#13237
Closed
ychin wants to merge 2 commits intovim:masterfrom
Closed
Conversation
- Fix manual array size calculations to just use `ARRAY_LENGTH()`. - Fix unintentional typo in comments due to copy-paste error. - Fix assert_equal() usages to pass the expected value to first parameter instead of 2nd one to avoid confusion.
Codecov Report
@@ Coverage Diff @@
## master #13237 +/- ##
==========================================
+ Coverage 82.15% 82.16% +0.01%
==========================================
Files 160 160
Lines 196132 196139 +7
Branches 43935 43951 +16
==========================================
+ Hits 161139 161167 +28
+ Misses 22131 22106 -25
- Partials 12862 12866 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Contributor
Author
|
Per this comment (#13182 (comment)), the last PR also introduced some signed vs unsigned warnings. Added a commit to address that here. Apparently Appveyor CI build warnings are not considered errors. |
Member
|
I guess you now added some style errors. |
c19d91b to
2c0ae4d
Compare
Contributor
Author
Should be fixed |
Contributor
Author
|
Feel free to combine with #13249 as it's related. |
Member
|
thanks, will do! |
zeertzjq
added a commit
to zeertzjq/neovim
that referenced
this pull request
Oct 2, 2023
Problem: Clean up cmdline option completion code Solution: Fix various minor problems - Fix manual array size calculations to just use `ARRAY_LENGTH()`. - Fix unintentional typo in comments due to copy-paste error. - Fix assert_equal() usages to pass the expected value to first parameter instead of 2nd one to avoid confusion. - Fix signed vs unsigned warnings - Correct misplaced comments about set_op_T and set_prefix_T and fix a typo in another comment closes: vim/vim#13249 closes: vim/vim#13237 vim/vim@6d11347 N/A patch: vim-patch:9.0.1976: style: space before tab in optionstr.c Co-authored-by: Yee Cheng Chin <[email protected]>
zeertzjq
added a commit
to neovim/neovim
that referenced
this pull request
Oct 2, 2023
Problem: Clean up cmdline option completion code Solution: Fix various minor problems - Fix manual array size calculations to just use `ARRAY_LENGTH()`. - Fix unintentional typo in comments due to copy-paste error. - Fix assert_equal() usages to pass the expected value to first parameter instead of 2nd one to avoid confusion. - Fix signed vs unsigned warnings - Correct misplaced comments about set_op_T and set_prefix_T and fix a typo in another comment closes: vim/vim#13249 closes: vim/vim#13237 vim/vim@6d11347 N/A patch: vim-patch:9.0.1976: style: space before tab in optionstr.c Co-authored-by: Yee Cheng Chin <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ARRAY_LENGTH().