mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 10:18:18 +00:00
ui: Remove ui_inchar/ui_char_avail
Also: - Remove NO_CONSOLE_INPUT/NO_CONSULE preprocessor conditionals - Remove ctrl_c_interrupts variable, check for mapped_ctrl_c directly in process_interrupts() - Move ui_inchar profiling to input_poll which is where Nvim blocks for input.
This commit is contained in:
@@ -75,6 +75,7 @@
|
||||
#include "nvim/undo.h"
|
||||
#include "nvim/window.h"
|
||||
#include "nvim/os/os.h"
|
||||
#include "nvim/os/input.h"
|
||||
|
||||
#ifndef UNIX /* it's in os_unix_defs.h for Unix */
|
||||
# include <time.h>
|
||||
@@ -1642,7 +1643,7 @@ void ml_sync_all(int check_file, int check_char)
|
||||
if (buf->b_ml.ml_mfp->mf_dirty) {
|
||||
(void)mf_sync(buf->b_ml.ml_mfp, (check_char ? MFS_STOP : 0)
|
||||
| (bufIsChanged(buf) ? MFS_FLUSH : 0));
|
||||
if (check_char && ui_char_avail()) /* character available now */
|
||||
if (check_char && os_char_avail()) /* character available now */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user