input.c: Process only safe events before blocking.

Introduce multiqueue_process_priority() to process only events at or
above a certain priority.
This commit is contained in:
Justin M. Keyes
2017-03-14 00:44:03 +01:00
parent 3ea1007753
commit acfd2a2a29
7 changed files with 84 additions and 79 deletions

View File

@@ -714,7 +714,6 @@ Dictionary nvim_get_mode(void)
Dictionary rv = ARRAY_DICT_INIT;
char *modestr = get_mode();
bool blocked = input_blocking();
ILOG("blocked=%d", blocked);
PUT(rv, "mode", STRING_OBJ(cstr_as_string(modestr)));
PUT(rv, "blocking", BOOLEAN_OBJ(blocked));