aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/state.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-07-18 12:54:58 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-01 15:28:49 -0400
commit44cb491f6e2dd0b1aafa9ab83fe5f13cfbb716df (patch)
tree587fe949b27f8e3d10fd78021e62779bf4f13252 /src/nvim/state.c
parentfaa9869a9e7cc51a7dd88646f65a42b7972fa633 (diff)
downloadrneovim-44cb491f6e2dd0b1aafa9ab83fe5f13cfbb716df.tar.gz
rneovim-44cb491f6e2dd0b1aafa9ab83fe5f13cfbb716df.tar.bz2
rneovim-44cb491f6e2dd0b1aafa9ab83fe5f13cfbb716df.zip
globals: virtual_op is 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