From 44cb491f6e2dd0b1aafa9ab83fe5f13cfbb716df Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Wed, 18 Jul 2018 12:54:58 -0400 Subject: globals: virtual_op is TriState --- src/nvim/state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nvim/state.c') 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 -- cgit