forked from aniani/vim
Problem: ":tabmove" does not work as documented.
Solution: Make it work consistently. Update documentation and add tests.
(Hirohito Higashi)
96 lines
1.0 KiB
Plaintext
96 lines
1.0 KiB
Plaintext
Results:
|
|
tab page 2
|
|
this is tab page 3
|
|
this is tab page 1
|
|
this is tab page 4
|
|
gettabvar: pass
|
|
settabvar: pass
|
|
tab drop 1: pass
|
|
tab drop 2: pass
|
|
tab drop 3: pass
|
|
1
|
|
5
|
|
5
|
|
4
|
|
5
|
|
3
|
|
7
|
|
10
|
|
1
|
|
10
|
|
1
|
|
10
|
|
1
|
|
10
|
|
4
|
|
5
|
|
E474 caught.
|
|
=== tab split ===
|
|
WinLeave
|
|
TabLeave
|
|
WinEnter
|
|
TabEnter
|
|
=== tabnew ===
|
|
WinLeave
|
|
TabLeave
|
|
WinEnter
|
|
TabEnter
|
|
BufLeave
|
|
BufEnter
|
|
a b c
|
|
=== call map(range(1, tabpagenr('$')), 'settabvar(v:val, ''a'', v:val*2)') ===
|
|
2 4 6
|
|
=== vsplit ===
|
|
WinLeave
|
|
WinEnter
|
|
=== tabnext 1 ===
|
|
BufLeave
|
|
WinLeave
|
|
TabLeave
|
|
WinEnter
|
|
TabEnter
|
|
BufEnter
|
|
a a
|
|
=== call map(copy(winr), 'settabwinvar('.tabn.', v:val, ''a'', v:val*2)') ===
|
|
2 4
|
|
=== tabnext 3 ===
|
|
BufLeave
|
|
WinLeave
|
|
TabLeave
|
|
WinEnter
|
|
TabEnter
|
|
=== tabnext 2 ===
|
|
=== tabclose 3 ===
|
|
2/2
|
|
=== tabnew ===
|
|
WinLeave
|
|
TabLeave
|
|
WinEnter
|
|
TabEnter
|
|
BufLeave
|
|
BufEnter
|
|
=== tabnext 1 ===
|
|
BufLeave
|
|
WinLeave
|
|
TabLeave
|
|
WinEnter
|
|
TabEnter
|
|
BufEnter
|
|
=== tabnext 3 ===
|
|
BufLeave
|
|
WinLeave
|
|
TabLeave
|
|
WinEnter
|
|
TabEnter
|
|
=== tabnext 2 ===
|
|
BufLeave
|
|
WinLeave
|
|
TabLeave
|
|
WinEnter
|
|
TabEnter
|
|
=== tabnext 2 ===
|
|
=== tabclose 3 ===
|
|
BufEnter
|
|
=== tabclose 3 ===
|
|
2/2
|