mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 21:18:34 +00:00
globals: virtual_op is TriState
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user