aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/state.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-08-04 19:37:58 +0200
committerGitHub <noreply@github.com>2018-08-04 19:37:58 +0200
commite861da247ea63024179467a9ad1923308951c0f0 (patch)
tree976cd9950743cbf49bd3bef4608c3875e1763c9c /src/nvim/state.c
parenta4c944762315c535fc7986d734e383eccc9f1863 (diff)
parentc51c2f5a65881b2057907338099e12fa19811d41 (diff)
downloadrneovim-e861da247ea63024179467a9ad1923308951c0f0.tar.gz
rneovim-e861da247ea63024179467a9ad1923308951c0f0.tar.bz2
rneovim-e861da247ea63024179467a9ad1923308951c0f0.zip
Merge #8749 from janlazo/clint-tristate
Diffstat (limited to 'src/nvim/state.c')
-rw-r--r--src/nvim/state.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/state.c b/src/nvim/state.c
index a4b394c9e4..5921bd45bf 100644
--- a/src/nvim/state.c
+++ b/src/nvim/state.c
@@ -73,13 +73,13 @@ getkey:
}
}
-/// Return TRUE if in the current mode we need to use virtual.
-int virtual_active(void)
+/// Return true if in the current mode we need to use virtual.
+bool virtual_active(void)
{
// While an operator is being executed we return "virtual_op", because
// VIsual_active has already been reset, thus we can't check for "block"
// being used.
- if (virtual_op != MAYBE) {
+ if (virtual_op != kNone) {
return virtual_op;
}
return ve_flags == VE_ALL