diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-18 12:59:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-18 12:59:19 +0200 |
commit | 2764d06ab7140c95b6317e344d853e4a32c76e9a (patch) | |
tree | b82043981ce7b58007940fcd0a82e5483d360b9b /src/testdir/mouse.vim | |
parent | 066e7da3cd0e3af438ff878a90ff1678363ce2a2 (diff) |
patch 8.2.1235: Not all mouse codes covered by testsv8.2.1235
Problem: Not all mouse codes covered by tests.
Solution: Add more tests for the mouse. (Yegappan Lakshmanan, closes #6472)
Diffstat (limited to 'src/testdir/mouse.vim')
-rw-r--r-- | src/testdir/mouse.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/testdir/mouse.vim b/src/testdir/mouse.vim index 5eab1de48f..d59ad0eab6 100644 --- a/src/testdir/mouse.vim +++ b/src/testdir/mouse.vim @@ -103,6 +103,24 @@ func MouseCtrlRightClick(row, col) call feedkeys(MouseCtrlRightClickCode(a:row, a:col), 'Lx!') endfunc +func MouseAltLeftClickCode(row, col) + let alt = 0x8 + return TerminalEscapeCode(0 + alt, a:row, a:col, 'M') +endfunc + +func MouseAltLeftClick(row, col) + call feedkeys(MouseAltLeftClickCode(a:row, a:col), 'Lx!') +endfunc + +func MouseAltRightClickCode(row, col) + let alt = 0x8 + return TerminalEscapeCode(2 + alt, a:row, a:col, 'M') +endfunc + +func MouseAltRightClick(row, col) + call feedkeys(MouseAltRightClickCode(a:row, a:col), 'Lx!') +endfunc + func MouseLeftReleaseCode(row, col) if &ttymouse ==# 'dec' return DecEscapeCode(3, 0, a:row, a:col) |