diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-20 23:43:49 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-20 23:49:34 -0400 |
commit | 612f3fd57a94ce9674650a973f6bc7a5dfed1949 (patch) | |
tree | 7675dbbe9c23237a5b1aa51b5482c3a461bb781e /src | |
parent | 0ff4854800b1a5cd45829d1dc6cfaaae308f3a1b (diff) | |
download | rneovim-612f3fd57a94ce9674650a973f6bc7a5dfed1949.tar.gz rneovim-612f3fd57a94ce9674650a973f6bc7a5dfed1949.tar.bz2 rneovim-612f3fd57a94ce9674650a973f6bc7a5dfed1949.zip |
undo: undo_undoes is bool
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/undo.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |