diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-28 15:43:42 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-28 16:43:38 +0800 |
commit | 45c9b10afc1cf2db7cccbd1224858b08ec8e4155 (patch) | |
tree | e667c662aecec706c0c7bbba5419c3d455b895d1 | |
parent | 552632c959d01870860e64337603871d14ba965f (diff) | |
download | rneovim-45c9b10afc1cf2db7cccbd1224858b08ec8e4155.tar.gz rneovim-45c9b10afc1cf2db7cccbd1224858b08ec8e4155.tar.bz2 rneovim-45c9b10afc1cf2db7cccbd1224858b08ec8e4155.zip |
vim-patch:9.0.0825: cannot drag an entry in the tabpage line
Problem: Cannot drag an entry in the tabpage line.
Solution: Clear dragwin instead of got_click. (closes vim/vim#11483,
closes vim/vim#11482)
https://github.com/vim/vim/commit/8e0ccb6bc21a446e5c6375b7fdf200fb53a129da
-rw-r--r-- | test/old/testdir/test_termcodes.vim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/old/testdir/test_termcodes.vim b/test/old/testdir/test_termcodes.vim index 23b816682f..4c65add5cf 100644 --- a/test/old/testdir/test_termcodes.vim +++ b/test/old/testdir/test_termcodes.vim @@ -562,6 +562,28 @@ func Test_term_mouse_drag_to_move_tab() \ 'Tab page 2', \ '# Xtab1'], a, msg) + " Switch to tab1 + tabnext + let a = split(execute(':tabs'), "\n") + call assert_equal(['Tab page 1', + \ '# Xtab2', + \ 'Tab page 2', + \ '> Xtab1'], a, msg) + + " Click in tab2 and drag it to tab1. + " This time it is non-current tab. + call MouseLeftClick(row, 6) + call assert_equal(0, getcharmod(), msg) + for col in [7, 8, 9, 10] + call MouseLeftDrag(row, col) + endfor + call MouseLeftRelease(row, col) + let a = split(execute(':tabs'), "\n") + call assert_equal(['Tab page 1', + \ '# Xtab1', + \ 'Tab page 2', + \ '> Xtab2'], a, msg) + " Click elsewhere so that click in next iteration is not " interpreted as unwanted double-click. call MouseLeftClick(row, 11) |