aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-06 11:21:51 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-06 11:49:59 -0400
commit96f165e74473b38ec98a7f1ec06a4056711bd904 (patch)
tree4bbf813c4b75db6ed20b54d2f80cf5456ae03620 /src/nvim/edit.c
parent8f75debd867694e6ea709d4eb83e121d643df7e3 (diff)
downloadrneovim-96f165e74473b38ec98a7f1ec06a4056711bd904.tar.gz
rneovim-96f165e74473b38ec98a7f1ec06a4056711bd904.tar.bz2
rneovim-96f165e74473b38ec98a7f1ec06a4056711bd904.zip
edit: can_cindent is bool
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index c8eae55c81..261244ba58 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -227,7 +227,7 @@ static int last_insert_skip; /* nr of chars in front of previous insert */
static int new_insert_skip; /* nr of chars in front of current insert */
static int did_restart_edit; /* "restart_edit" when calling edit() */
-static int can_cindent; /* may do cindenting on this line */
+static bool can_cindent; // may do cindenting on this line
static int old_indent = 0; /* for ^^D command in insert mode */
@@ -5656,8 +5656,8 @@ internal_format (
}
haveto_redraw = TRUE;
- can_cindent = TRUE;
- /* moved the cursor, don't autoindent or cindent now */
+ can_cindent = true;
+ // moved the cursor, don't autoindent or cindent now
did_ai = FALSE;
did_si = FALSE;
can_si = FALSE;
@@ -7468,7 +7468,7 @@ static void ins_shift(int c, int lastc)
did_si = FALSE;
can_si = FALSE;
can_si_back = FALSE;
- can_cindent = FALSE; /* no cindenting after ^D or ^T */
+ can_cindent = false; // no cindenting after ^D or ^T
}
static void ins_del(void)
@@ -7862,7 +7862,7 @@ static void ins_mouse(int c)
curwin = new_curwin;
curbuf = curwin->w_buffer;
}
- can_cindent = TRUE;
+ can_cindent = true;
}
/* redraw status lines (in case another window became active) */
@@ -7921,7 +7921,7 @@ static void ins_mousescroll(int dir)
if (!equalpos(curwin->w_cursor, tpos)) {
start_arrow(&tpos);
- can_cindent = TRUE;
+ can_cindent = true;
}
}
@@ -8389,8 +8389,8 @@ static bool ins_eol(int c)
has_format_option(FO_RET_COMS) ? OPENLINE_DO_COM : 0,
old_indent);
old_indent = 0;
- can_cindent = TRUE;
- /* When inserting a line the cursor line must never be in a closed fold. */
+ can_cindent = true;
+ // When inserting a line the cursor line must never be in a closed fold.
foldOpenCursor();
return !i;