mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
undo: did_undo,absolute in u_undo_end() are bool
This commit is contained in:
parent
6f55aa3502
commit
0ff4854800
@ -2386,8 +2386,8 @@ static void u_undoredo(int undo, bool do_buf_event)
|
|||||||
/// Otherwise, report the number of changes (this may be incorrect
|
/// Otherwise, report the number of changes (this may be incorrect
|
||||||
/// in some cases, but it's better than nothing).
|
/// in some cases, but it's better than nothing).
|
||||||
static void u_undo_end(
|
static void u_undo_end(
|
||||||
int did_undo, ///< just did an undo
|
bool did_undo, ///< just did an undo
|
||||||
int absolute, ///< used ":undo N"
|
bool absolute, ///< used ":undo N"
|
||||||
bool quiet)
|
bool quiet)
|
||||||
{
|
{
|
||||||
char *msgstr;
|
char *msgstr;
|
||||||
@ -2427,7 +2427,7 @@ static void u_undo_end(
|
|||||||
/* For ":undo N" we prefer a "after #N" message. */
|
/* For ":undo N" we prefer a "after #N" message. */
|
||||||
if (absolute && curbuf->b_u_curhead->uh_next.ptr != NULL) {
|
if (absolute && curbuf->b_u_curhead->uh_next.ptr != NULL) {
|
||||||
uhp = curbuf->b_u_curhead->uh_next.ptr;
|
uhp = curbuf->b_u_curhead->uh_next.ptr;
|
||||||
did_undo = FALSE;
|
did_undo = false;
|
||||||
} else if (did_undo)
|
} else if (did_undo)
|
||||||
uhp = curbuf->b_u_curhead;
|
uhp = curbuf->b_u_curhead;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user