Skip to content

Add support for # argument to the :tabnext, :tabclose, :tabmove and :tabonly commands#6677

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

Add support for # argument to the :tabnext, :tabclose, :tabmove and :tabonly commands#6677
yegappan wants to merge 1 commit intovim:masterfrom
yegappan:tabpagenr

Conversation

@yegappan
Copy link
Member

@yegappan yegappan commented Aug 9, 2020

Add support for using the last accessed tab page in Ex commands.
Also fix a problem in setting the correct last tabpage after using a
count with tabnew to create a new tabpage.

@codecov
Copy link

codecov bot commented Aug 10, 2020

Codecov Report

Merging #6677 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6677      +/-   ##
==========================================
+ Coverage   88.26%   88.28%   +0.01%     
==========================================
  Files         147      147              
  Lines      160391   160398       +7     
==========================================
+ Hits       141576   141602      +26     
+ Misses      18815    18796      -19     
Impacted Files Coverage Δ
src/ex_docmd.c 94.20% <100.00%> (+<0.01%) ⬆️
src/window.c 92.46% <100.00%> (-0.04%) ⬇️
src/terminal.c 91.02% <0.00%> (+0.03%) ⬆️
src/gui_gtk_x11.c 58.69% <0.00%> (+0.04%) ⬆️
src/mbyte.c 79.45% <0.00%> (+0.08%) ⬆️
src/clipboard.c 83.31% <0.00%> (+0.10%) ⬆️
src/sign.c 94.94% <0.00%> (+0.17%) ⬆️
src/netbeans.c 76.29% <0.00%> (+0.22%) ⬆️
src/gui.c 63.35% <0.00%> (+0.54%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e4cfff...ff104e6. Read the comment docs.

@brammool brammool closed this in 94f4ffa Aug 10, 2020
seandewar added a commit to seandewar/neovim that referenced this pull request Mar 14, 2022
Problem:    Previous tab page not usable from an Ex command.
Solution:   Add the "#" argument for :tabnext et al. (Yegappan Lakshmanan,
            closes vim/vim#6677)
vim/vim@94f4ffa

Do not rename old_curtab to prev_tp in win_new_tabpage, this can be confused
with the previous tabpage (`:tabprevious`).

Cherry-pick ex_errmsg from v8.2.1280.
vim/vim@8930caa
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.

1 participant