src/nvim/state.c
bool virtual_active(void)
{
  unsigned int cur_ve_flags = get_ve_flags();

  // 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 != kNone) {
    return virtual_op;
  }
  return cur_ve_flags == VE_ALL
         || ((cur_ve_flags & VE_BLOCK) && VIsual_active && VIsual_mode == Ctrl_V)
         || ((cur_ve_flags & VE_INSERT) && (State & INSERT));
}
/// Return true if in the current mode we need to use virtual.
Return true if in the current mode we need to use virtual.
Return true if in the current mode we need to use virtual .
bool virtual_active(void)
{
  unsigned int cur_ve_flags = get_ve_flags();
  if (virtual_op != kNone) {
    return virtual_op;
  }
  return cur_ve_flags == VE_ALL
         || ((cur_ve_flags & VE_BLOCK) && VIsual_active && VIsual_mode == Ctrl_V)
         || ((cur_ve_flags & VE_INSERT) && (State & INSERT));
}
bool virtual_active ( void ) { unsigned int cur_ve_flags = get_ve_flags ( ) ; if ( virtual_op != kNone ) { return virtual_op ; } return cur_ve_flags == VE_ALL || ( ( cur_ve_flags & VE_BLOCK ) && VIsual_active && VIsual_mode == Ctrl_V ) || ( ( cur_ve_flags & VE_INSERT ) && ( State & INSERT ) ) ; }
Return true if in the current mode we need to use virtual.
Return true if in the current mode we need to use virtual .
// 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.