Emit SGR-styled mouse reporting if possible
The mouse works even in columns beyond 223. This option is backward
compatible with "xterm2" because it can also decode "xterm2" style mouse
codes.
See :help ttymouse
@@ 62,7 62,11 @@ set number" Mouse support
set mouse=a
if !has('nvim')
- set ttymouse=xterm2
+ if has("mouse_sgr")
+ set ttymouse=sgr
+ else
+ set ttymouse=xterm2
+ endif
endif
" Send more characters for faster re-draws