aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-11-11 12:13:00 -0500
committerJustin M. Keyes <justinkz@gmail.com>2014-11-11 12:13:00 -0500
commitb027e1ed0c92ed49961ecbd24228967d916c2bbd (patch)
treea8acc0594efe3d971cc55f12e6675c68c2fd73ca /src/nvim/ops.c
parente450c541ddfe1266d3d56b594f83ab197e747584 (diff)
parent8eddceb14000a33282a493140ef3c008f385a461 (diff)
downloadrneovim-b027e1ed0c92ed49961ecbd24228967d916c2bbd.tar.gz
rneovim-b027e1ed0c92ed49961ecbd24228967d916c2bbd.tar.bz2
rneovim-b027e1ed0c92ed49961ecbd24228967d916c2bbd.zip
Merge pull request #923 from splinterofchaos/normal-bool
Use bool in normal.h and .c.
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index e7079e02d0..2523e21c42 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -1549,7 +1549,8 @@ int op_delete(oparg_T *oap)
/* Break a tab only when it's included in the area. */
if (gchar_pos(&oap->end) == '\t'
- && (int)oap->end.coladd < oap->inclusive) {
+ && oap->end.coladd == 0
+ && oap->inclusive) {
/* save last line for undo */
if (u_save((linenr_T)(oap->end.lnum - 1),
(linenr_T)(oap->end.lnum + 1)) == FAIL)
@@ -5058,8 +5059,8 @@ void cursor_pos_info(void)
/* Make 'sbr' empty for a moment to get the correct size. */
p_sbr = empty_option;
- oparg.is_VIsual = 1;
- oparg.block_mode = TRUE;
+ oparg.is_VIsual = true;
+ oparg.block_mode = true;
oparg.op_type = OP_NOP;
getvcols(curwin, &min_pos, &max_pos,
&oparg.start_vcol, &oparg.end_vcol);