mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
undo: above,did_undo in undo_time() are bool
This commit is contained in:
parent
66ed6297b0
commit
19717ca1e8
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user