aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-20 23:42:37 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-20 23:49:34 -0400
commit0ff4854800b1a5cd45829d1dc6cfaaae308f3a1b (patch)
tree977cd3c63dfdf0256dc7b5ad82124605c7aa4c96 /src
parent6f55aa3502823fa0b20e3cc8055a3f3f3f4e5153 (diff)
downloadrneovim-0ff4854800b1a5cd45829d1dc6cfaaae308f3a1b.tar.gz
rneovim-0ff4854800b1a5cd45829d1dc6cfaaae308f3a1b.tar.bz2
rneovim-0ff4854800b1a5cd45829d1dc6cfaaae308f3a1b.zip
undo: did_undo,absolute in u_undo_end() are bool
Diffstat (limited to 'src')
-rw-r--r--src/nvim/undo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index 35b54f0a13..d8322e4aa6 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -2386,8 +2386,8 @@ static void u_undoredo(int undo, bool do_buf_event)
/// Otherwise, report the number of changes (this may be incorrect
/// in some cases, but it's better than nothing).
static void u_undo_end(
- int did_undo, ///< just did an undo
- int absolute, ///< used ":undo N"
+ bool did_undo, ///< just did an undo
+ bool absolute, ///< used ":undo N"
bool quiet)
{
char *msgstr;
@@ -2427,7 +2427,7 @@ static void u_undo_end(
/* For ":undo N" we prefer a "after #N" message. */
if (absolute && curbuf->b_u_curhead->uh_next.ptr != NULL) {
uhp = curbuf->b_u_curhead->uh_next.ptr;
- did_undo = FALSE;
+ did_undo = false;
} else if (did_undo)
uhp = curbuf->b_u_curhead;
else