globals: typebuf_was_filled is bool

This commit is contained in:
Jan Edmund Lazo 2018-08-05 19:26:55 -04:00
parent 4ca2cf4b47
commit 4df0ea98dc
2 changed files with 5 additions and 4 deletions

View File

@ -1080,9 +1080,10 @@ void del_typebuf(int len, int offset)
/* Reset the flag that text received from a client or from feedkeys()
* was inserted in the typeahead buffer. */
typebuf_was_filled = FALSE;
if (++typebuf.tb_change_cnt == 0)
typebuf_was_filled = false;
if (++typebuf.tb_change_cnt == 0) {
typebuf.tb_change_cnt = 1;
}
}
/*

View File

@ -942,8 +942,8 @@ EXTERN int no_hlsearch INIT(= FALSE);
EXTERN linenr_T printer_page_num;
EXTERN int typebuf_was_filled INIT(= FALSE); /* received text from client
or from feedkeys() */
EXTERN bool typebuf_was_filled INIT(= false); // received text from client
// or from feedkeys()
#ifdef BACKSLASH_IN_FILENAME