diff options
author | dundargoc <gocdundar@gmail.com> | 2023-12-16 22:14:28 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-12-19 11:43:21 +0100 |
commit | 7f6b775b45de5011ff1c44e63e57551566d80704 (patch) | |
tree | 54eab8482051d2d1a958fcf9f6c9bcbb02827717 /src/nvim/getchar.c | |
parent | 693aea0e9e1032aee85d56c1a3f33e0811dbdc18 (diff) | |
download | rneovim-7f6b775b45de5011ff1c44e63e57551566d80704.tar.gz rneovim-7f6b775b45de5011ff1c44e63e57551566d80704.tar.bz2 rneovim-7f6b775b45de5011ff1c44e63e57551566d80704.zip |
refactor: use `bool` to represent boolean values
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 0ccf1823f8..305b18fc28 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -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); |