aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c12
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);