Skip to content

Refactor the f_indexof() function, update the help and add additional test#10908

Closed
yegappan wants to merge 1 commit intovim:masterfrom
yegappan:excmdtest
Closed

Refactor the f_indexof() function, update the help and add additional test#10908
yegappan wants to merge 1 commit intovim:masterfrom
yegappan:excmdtest

Conversation

@yegappan
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Aug 13, 2022

Codecov Report

Merging #10908 (8b98ff9) into master (f0ccfa4) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master   #10908   +/-   ##
=======================================
  Coverage   82.68%   82.69%           
=======================================
  Files         148      148           
  Lines      173693   173698    +5     
  Branches    39246    39246           
=======================================
+ Hits       143626   143634    +8     
+ Misses      17480    17478    -2     
+ Partials    12587    12586    -1     
Flag Coverage Δ
huge-clang-none 82.69% <100.00%> (+<0.01%) ⬆️
linux 82.69% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
src/evalfunc.c 89.71% <100.00%> (+0.01%) ⬆️
src/regexp_nfa.c 88.89% <0.00%> (-0.19%) ⬇️
src/search.c 83.85% <0.00%> (-0.09%) ⬇️
src/gui.c 71.24% <0.00%> (-0.05%) ⬇️
src/eval.c 90.93% <0.00%> (-0.04%) ⬇️
src/normal.c 90.34% <0.00%> (+0.03%) ⬆️
src/terminal.c 82.24% <0.00%> (+0.03%) ⬆️
src/gui_gtk_x11.c 51.81% <0.00%> (+0.09%) ⬆️
src/channel.c 83.63% <0.00%> (+0.13%) ⬆️
src/if_xcmdsrv.c 76.97% <0.00%> (+0.89%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

start start evaluating {expr} at the item with index
{start} (may be negative for an item relative
startidx start evaluating {expr} at the item with index
staridx (may be negative for an item relative

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think staridx should be replaced with {startidx}.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll include the correction.

@brammool brammool closed this in 3fbf6cd Aug 13, 2022
jamespeapen pushed a commit to jamespeapen/vim that referenced this pull request Sep 21, 2022
Problem:    Code and help for indexof() is not ideal.
Solution:   Refactor the code, improve the help. (Yegappan Lakshmanan,
            closes vim#10908)
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Feb 26, 2023
Problem:    Code and help for indexof() is not ideal.
Solution:   Refactor the code, improve the help. (Yegappan Lakshmanan,
            closes vim/vim#10908)

vim/vim@3fbf6cd

Skip: CHECK_LIST_MATERIALIZE and set_vim_var_type().

Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Feb 26, 2023
Problem:    Code and help for indexof() is not ideal.
Solution:   Refactor the code, improve the help. (Yegappan Lakshmanan,
            closes vim/vim#10908)

vim/vim@3fbf6cd

Skip CHECK_LIST_MATERIALIZE and set_vim_var_type().
Use tv_list_uidx() instead of lv_idx.

Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
yesean pushed a commit to yesean/neovim that referenced this pull request Mar 25, 2023
Problem:    Code and help for indexof() is not ideal.
Solution:   Refactor the code, improve the help. (Yegappan Lakshmanan,
            closes vim/vim#10908)

vim/vim@3fbf6cd

Skip CHECK_LIST_MATERIALIZE and set_vim_var_type().
Use tv_list_uidx() instead of lv_idx.

Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
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.

3 participants