Functions
state.c File Reference
#include <assert.h>
#include "nvim/ascii.h"
#include "nvim/edit.h"
#include "nvim/ex_docmd.h"
#include "nvim/getchar.h"
#include "nvim/lib/kvec.h"
#include "nvim/log.h"
#include "nvim/main.h"
#include "nvim/option_defs.h"
#include "nvim/os/input.h"
#include "nvim/state.h"
#include "nvim/ui.h"
#include "nvim/vim.h"

Functions

void state_enter (VimState *s)
 
void state_handle_k_event (void)
 
bool virtual_active (void)
 Return true if in the current mode we need to use virtual. More...
 
int get_real_state (void)
 
char * get_mode (void)
 

Function Documentation

◆ get_mode()

char* get_mode ( void  )
Returns
[allocated] mode string

◆ get_real_state()

int get_real_state ( void  )

VISUAL, SELECTMODE and OP_PENDING State are never set, they are equal to NORMAL State with a condition. This function returns the real State.

◆ state_enter()

void state_enter ( VimState s)

◆ state_handle_k_event()

void state_handle_k_event ( void  )

process events on main_loop, but interrupt if input is available

This should be used to handle K_EVENT in states accepting input otherwise bursts of events can block break checking indefinitely.

◆ virtual_active()

bool virtual_active ( void  )

Return true if in the current mode we need to use virtual.