Revert "fix: no mouse support inside vim terminal"

This reverts commit dd7c13dd77.

Single/double mouse click breaks on xfce4-terminal and xterm on Ubuntu 20.04
This commit is contained in:
Arun Prakash Jana 2021-10-22 00:30:11 +05:30
parent 2801832c4d
commit 00c73512b9

View file

@ -2079,10 +2079,6 @@ static bool initcurses(void *oldmask)
//intrflush(stdscr, FALSE);
keypad(stdscr, TRUE);
#ifndef NOMOUSE
#ifndef NOX11
printf("\x1b[?1000h\n"); /* xterm X10 mouse mode */
printf("\x1b[?1006h\n"); /* extended SGR mouse mode */
#endif
#if NCURSES_MOUSE_VERSION <= 1
mousemask(BUTTON1_PRESSED | BUTTON1_DOUBLE_CLICKED | BUTTON2_PRESSED | BUTTON3_PRESSED,
(mmask_t *)oldmask);