Skip to content

Conversation

@ychin
Copy link
Contributor

@ychin ychin commented Oct 1, 2023

  • 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 misc signed vs unsigned warnings.

- 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
Copy link

codecov bot commented Oct 1, 2023

Codecov Report

Merging #13237 (2c0ae4d) into master (e379e21) will increase coverage by 0.01%.
Report is 2 commits behind head on master.
The diff coverage is 100.00%.

@@            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     
Flag Coverage Δ
huge-clang-Array 82.81% <100.00%> (+0.01%) ⬆️
linux 82.81% <100.00%> (+0.01%) ⬆️
mingw-x64-HUGE 76.76% <100.00%> (+<0.01%) ⬆️
mingw-x86-HUGE 77.26% <100.00%> (-0.01%) ⬇️
windows 78.34% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/option.c 88.82% <100.00%> (-0.02%) ⬇️
src/optionstr.c 91.18% <100.00%> (+0.01%) ⬆️

... and 17 files with indirect coverage changes

@ychin ychin marked this pull request as draft October 1, 2023 06:53
@ychin ychin marked this pull request as ready for review October 1, 2023 07:02
@ychin
Copy link
Contributor Author

ychin commented Oct 1, 2023

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.

@chrisbra
Copy link
Member

chrisbra commented Oct 1, 2023

I guess you now added some style errors.

@ychin ychin force-pushed the fix-cmdline-expansion-use-array-length branch from c19d91b to 2c0ae4d Compare October 1, 2023 07:24
@ychin
Copy link
Contributor Author

ychin commented Oct 1, 2023

I guess you now added some style errors.

Should be fixed

@ychin
Copy link
Contributor Author

ychin commented Oct 2, 2023

Feel free to combine with #13249 as it's related.

@chrisbra
Copy link
Member

chrisbra commented Oct 2, 2023

thanks, will do!

@chrisbra chrisbra closed this in 6d11347 Oct 2, 2023
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]>
@ychin ychin deleted the fix-cmdline-expansion-use-array-length branch October 3, 2023 00:21
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

Successfully merging this pull request may close these issues.

2 participants