Mercurial > vim
comparison src/testdir/mouse.vim @ 21114:d0265fdadec9 v8.2.1108
patch 8.2.1108: mouse left-right scroll is not supported in terminal window
Commit: https://github.com/vim/vim/commit/d58d4f90aeb381045000ea46493b5bd9b9d1fa23
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 1 15:49:29 2020 +0200
patch 8.2.1108: mouse left-right scroll is not supported in terminal window
Problem: Mouse left-right scroll is not supported in terminal window.
Solution: Implement mouse codes 6 and 7. (Trygve Aaberge, closes https://github.com/vim/vim/issues/6363)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 Jul 2020 16:00:05 +0200 |
parents | 0208534b8a84 |
children | e00467b9f5de |
comparison
equal
deleted
inserted
replaced
21113:e0f65780cc0a | 21114:d0265fdadec9 |
---|---|
167 | 167 |
168 func MouseWheelDown(row, col) | 168 func MouseWheelDown(row, col) |
169 call feedkeys(MouseWheelDownCode(a:row, a:col), 'Lx!') | 169 call feedkeys(MouseWheelDownCode(a:row, a:col), 'Lx!') |
170 endfunc | 170 endfunc |
171 | 171 |
172 func MouseWheelLeftCode(row, col) | |
173 return TerminalEscapeCode(0x42, a:row, a:col, 'M') | |
174 endfunc | |
175 | |
176 func MouseWheelLeft(row, col) | |
177 call feedkeys(MouseWheelLeftCode(a:row, a:col), 'Lx!') | |
178 endfunc | |
179 | |
180 func MouseWheelRightCode(row, col) | |
181 return TerminalEscapeCode(0x43, a:row, a:col, 'M') | |
182 endfunc | |
183 | |
184 func MouseWheelRight(row, col) | |
185 call feedkeys(MouseWheelRightCode(a:row, a:col), 'Lx!') | |
186 endfunc | |
187 | |
172 " vim: shiftwidth=2 sts=2 expandtab | 188 " vim: shiftwidth=2 sts=2 expandtab |