diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-06 11:29:20 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-06 11:49:59 -0400 |
commit | 5309ad29d4b6a59caca2d710e27245d18b16f888 (patch) | |
tree | 5ae5caddf019a3f215aca4763560ef1cc9908e4b /src/nvim/edit.c | |
parent | 6bff0f7b60fc74e4ca618d7b6d5ad7b68b9b2066 (diff) | |
download | rneovim-5309ad29d4b6a59caca2d710e27245d18b16f888.tar.gz rneovim-5309ad29d4b6a59caca2d710e27245d18b16f888.tar.bz2 rneovim-5309ad29d4b6a59caca2d710e27245d18b16f888.zip |
globals: can_si_back is bool
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index a11609aa45..3d234c8c56 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -4467,9 +4467,10 @@ static int ins_complete(int c, bool enable_pum) did_ai = FALSE; did_si = FALSE; can_si = FALSE; - can_si_back = FALSE; - if (stop_arrow() == FAIL) + can_si_back = false; + if (stop_arrow() == FAIL) { return FAIL; + } line = ml_get(curwin->w_cursor.lnum); curs_col = curwin->w_cursor.col; @@ -5272,7 +5273,7 @@ insertchar ( did_ai = FALSE; did_si = FALSE; can_si = FALSE; - can_si_back = FALSE; + can_si_back = false; // If there's any pending input, grab up to INPUT_BUFLEN at once. // This speeds up normal text input considerably. @@ -5661,7 +5662,7 @@ internal_format ( did_ai = FALSE; did_si = FALSE; can_si = FALSE; - can_si_back = FALSE; + can_si_back = false; line_breakcheck(); } @@ -6083,7 +6084,7 @@ stop_insert ( did_ai = FALSE; did_si = FALSE; can_si = FALSE; - can_si_back = FALSE; + can_si_back = false; /* Set '[ and '] to the inserted text. When end_insert_pos is NULL we are * now in a different buffer. */ @@ -7467,7 +7468,7 @@ static void ins_shift(int c, int lastc) did_ai = FALSE; did_si = FALSE; can_si = FALSE; - can_si_back = FALSE; + can_si_back = false; can_cindent = false; // no cindenting after ^D or ^T } @@ -7491,7 +7492,7 @@ static void ins_del(void) did_ai = FALSE; did_si = FALSE; can_si = FALSE; - can_si_back = FALSE; + can_si_back = false; AppendCharToRedobuff(K_DEL); } |