undo: above,did_undo in undo_time() are bool

This commit is contained in:
Jan Edmund Lazo 2018-08-20 23:06:47 -04:00
parent 66ed6297b0
commit 19717ca1e8

View File

@ -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: