aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-20 23:06:47 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-20 23:49:34 -0400
commit19717ca1e8da17890b25789285c759bc1d57a12d (patch)
tree5c56ff24bfb0bfda89cb58754248060d4b412970 /src
parent66ed6297b0f5b6e571f675840388e0956c5deb9d (diff)
downloadrneovim-19717ca1e8da17890b25789285c759bc1d57a12d.tar.gz
rneovim-19717ca1e8da17890b25789285c759bc1d57a12d.tar.bz2
rneovim-19717ca1e8da17890b25789285c759bc1d57a12d.zip
undo: above,did_undo in undo_time() are bool
Diffstat (limited to 'src')
-rw-r--r--src/nvim/undo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index 4fdcc991d9..a9940a53c7 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -1827,8 +1827,8 @@ void undo_time(long step, int sec, int file, int absolute)
int round;
int dosec = sec;
int dofile = file;
- int above = FALSE;
- int did_undo = TRUE;
+ bool above = false;
+ bool did_undo = true;
/* First make sure the current undoable change is synced. */
if (curbuf->b_u_synced == false)
@@ -2016,8 +2016,9 @@ void undo_time(long step, int sec, int file, int absolute)
target = closest_seq;
dosec = FALSE;
dofile = FALSE;
- if (step < 0)
- above = TRUE; /* stop above the header */
+ if (step < 0) {
+ above = true; // stop above the header
+ }
}
found: