diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-06 11:38:40 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-06 11:49:59 -0400 |
commit | b9ab3636362c67bb49f8cd165006c97ffc9a00da (patch) | |
tree | 41a381eb9285590ac11dbc0e74d48b1b8163cba4 /src/nvim/misc1.c | |
parent | 7692dfeecbcdfb656cb3853907421a7f58f16c7a (diff) | |
download | rneovim-b9ab3636362c67bb49f8cd165006c97ffc9a00da.tar.gz rneovim-b9ab3636362c67bb49f8cd165006c97ffc9a00da.tar.bz2 rneovim-b9ab3636362c67bb49f8cd165006c97ffc9a00da.zip |
globals: did_si is bool
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 3a2795f530..c1899970e7 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -166,7 +166,7 @@ open_line ( } u_clearline(); /* cannot do "U" command when adding lines */ - did_si = FALSE; + did_si = false; ai_col = 0; /* @@ -286,7 +286,7 @@ open_line ( * checking for "if" and the like. */ if (last_char == '{') { - did_si = TRUE; /* do indent */ + did_si = true; // do indent no_si = TRUE; /* don't delete it when '{' typed */ } /* @@ -296,7 +296,7 @@ open_line ( */ else if (last_char != ';' && last_char != '}' && cin_is_cinword(ptr)) - did_si = TRUE; + did_si = true; } } else { // dir == BACKWARD // Skip preprocessor directives, unless they are @@ -321,7 +321,7 @@ open_line ( } p = skipwhite(ptr); if (*p == '}') { // if line starts with '}': do indent - did_si = TRUE; + did_si = true; } else { // can delete indent when '{' typed can_si_back = true; } @@ -814,8 +814,9 @@ open_line ( } } newcol += curwin->w_cursor.col; - if (no_si) - did_si = FALSE; + if (no_si) { + did_si = false; + } } /* |