diff options
-rw-r--r-- | src/nvim/undo.c | 9 |
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: |