-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Clean up cmdline option tab-completion code #13237
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
- 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.
|
|
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. |
|
I guess you now added some style errors. |
c19d91b to
2c0ae4d
Compare
Should be fixed |
|
Feel free to combine with #13249 as it's related. |
|
thanks, will do! |
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]>
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]>
ARRAY_LENGTH().