From 19717ca1e8da17890b25789285c759bc1d57a12d Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 20 Aug 2018 23:06:47 -0400 Subject: undo: above,did_undo in undo_time() are bool --- src/nvim/undo.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') 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: -- cgit