globals: virtual_op is TriState

This commit is contained in:
Jan Edmund Lazo
2018-07-18 12:54:58 -04:00
parent faa9869a9e
commit 44cb491f6e
5 changed files with 12 additions and 12 deletions

View File

@@ -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