Only flush stdin when no mouse wheel is used

This commit is contained in:
pancake 2019-01-13 11:25:48 +01:00
parent 3be4055019
commit 388dc1e222

View File

@ -4039,7 +4039,9 @@ dodo:
ch = r_cons_readchar ();
}
#ifndef __WINDOWS__
tcflush (STDIN_FILENO, TCIFLUSH);
if (!r_config_get_i (core->config, "scr.wheel")) {
tcflush (STDIN_FILENO, TCIFLUSH);
}
#endif
if (r_cons_is_breaked()) {
break;