mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
refactor: use bool
to represent boolean values
This commit is contained in:
@@ -91,7 +91,7 @@ static int typeahead_char = 0; ///< typeahead char that's not flushed
|
||||
|
||||
/// When block_redo is true the redo buffer will not be changed.
|
||||
/// Used by edit() to repeat insertions.
|
||||
static int block_redo = false;
|
||||
static bool block_redo = false;
|
||||
|
||||
static int KeyNoremap = 0; ///< remapping flags
|
||||
|
||||
@@ -375,16 +375,16 @@ static void start_stuff(void)
|
||||
}
|
||||
}
|
||||
|
||||
/// Return true if the stuff buffer is empty.
|
||||
int stuff_empty(void)
|
||||
/// @return true if the stuff buffer is empty.
|
||||
bool stuff_empty(void)
|
||||
FUNC_ATTR_PURE
|
||||
{
|
||||
return (readbuf1.bh_first.b_next == NULL && readbuf2.bh_first.b_next == NULL);
|
||||
}
|
||||
|
||||
/// Return true if readbuf1 is empty. There may still be redo characters in
|
||||
/// redbuf2.
|
||||
int readbuf1_empty(void)
|
||||
/// @return true if readbuf1 is empty. There may still be redo characters in
|
||||
/// redbuf2.
|
||||
bool readbuf1_empty(void)
|
||||
FUNC_ATTR_PURE
|
||||
{
|
||||
return (readbuf1.bh_first.b_next == NULL);
|
||||
|
Reference in New Issue
Block a user