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/misc1.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/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 8d23224478..415b4938cc 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -320,10 +320,11 @@ open_line ( } } p = skipwhite(ptr); - if (*p == '}') /* if line starts with '}': do indent */ + if (*p == '}') { // if line starts with '}': do indent did_si = TRUE; - else /* can delete indent when '{' typed */ - can_si_back = TRUE; + } else { // can delete indent when '{' typed + can_si_back = true; + } } curwin->w_cursor = old_cursor; } |