This PR improves test coverage for tabpages:
1/ The :tabs ex command was not tested according to codecov:
https://codecov.io/gh/vim/vim/src/master/src/ex_docmd.c#L8388
2/ Normal commands <C-PageUp> and <C-PageDown> to switch
pages were also not tested:
https://codecov.io/gh/vim/vim/src/master/src/normal.c#L4207
While adding tests, I found that {count}<C-PageUp> and
{count}<C-PageDown> are not symmetrical, which I find
counter-intuitive:
That's also the behavior according to help page so it looks
intentional. Same remark for normal gt and gT commands which are
also not symmetrical with a count.
Also, using PageUp to go downward and PageDown to go upward
is rather counter-intuitive to me. I almost never use tabpages
myself, so I never realized this until now.
https://github.com/vim/vim/pull/2934
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
Merging #2934 into master will increase coverage by
0.02%
.
The diff coverage isn/a
.
@@ Coverage Diff @@ ## master #2934 +/- ## ========================================== + Coverage 75.69% 75.72% +0.02% ========================================== Files 92 92 Lines 135014 135013 -1 ========================================== + Hits 102201 102237 +36 + Misses 32813 32776 -37
Impacted Files | Coverage Δ | |
---|---|---|
src/if_xcmdsrv.c | 84.35% <0%> (-0.36%) |
⬇️ |
src/term.c | 59.56% <0%> (-0.06%) |
⬇️ |
src/os_unix.c | 54.48% <0%> (-0.05%) |
⬇️ |
src/if_py_both.h | 76.59% <0%> (-0.01%) |
⬇️ |
src/gui.c | 49.35% <0%> (ø) |
⬆️ |
src/window.c | 82.2% <0%> (+0.06%) |
⬆️ |
src/normal.c | 74.08% <0%> (+0.07%) |
⬆️ |
src/channel.c | 83.15% <0%> (+0.07%) |
⬆️ |
src/ex_cmds.c | 79.46% <0%> (+0.08%) |
⬆️ |
src/gui_gtk_x11.c | 47.98% <0%> (+0.09%) |
⬆️ |
... and 3 more |
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 42ab17b...e7a28de. Read the comment docs.
While adding tests, I found that {count} and
{count} are not symmetrical, which I find
counter-intuitive:
I also stumbled over the inconsistent behaviour a while back:
https://groups.google.com/d/msg/vim_dev/CTIIpzvcATY/klAn5voCCAAJ
Perhaps, it should be mentioned in the documentation, that the behaviour is not symmetrical?