From 612f3fd57a94ce9674650a973f6bc7a5dfed1949 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Mon, 20 Aug 2018 23:43:49 -0400 Subject: undo: undo_undoes is bool --- src/nvim/undo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nvim/undo.c b/src/nvim/undo.c index d8322e4aa6..6982e440c5 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -122,7 +122,7 @@ static long u_newcount, u_oldcount; * When 'u' flag included in 'cpoptions', we behave like vi. Need to remember * the action that "u" should do. */ -static int undo_undoes = FALSE; +static bool undo_undoes = false; static int lastmark = 0; @@ -591,7 +591,7 @@ int u_savecommon(linenr_T top, linenr_T bot, linenr_T newbot, int reload) uep->ue_next = curbuf->b_u_newhead->uh_entry; curbuf->b_u_newhead->uh_entry = uep; curbuf->b_u_synced = false; - undo_undoes = FALSE; + undo_undoes = false; #ifdef U_DEBUG u_check(FALSE); @@ -1676,7 +1676,7 @@ void u_undo(int count) } if (vim_strchr(p_cpo, CPO_UNDO) == NULL) - undo_undoes = TRUE; + undo_undoes = true; else undo_undoes = !undo_undoes; u_doit(count, false, true); -- cgit