cursor.c File Reference
#include <inttypes.h>
#include <stdbool.h>
#include "nvim/ascii.h"
#include "nvim/assert.h"
#include "nvim/change.h"
#include "nvim/charset.h"
#include "nvim/cursor.h"
#include "nvim/extmark.h"
#include "nvim/fold.h"
#include "nvim/mark.h"
#include "nvim/memline.h"
#include "nvim/memory.h"
#include "nvim/misc1.h"
#include "nvim/move.h"
#include "nvim/plines.h"
#include "nvim/screen.h"
#include "nvim/state.h"
#include "nvim/vim.h"


int getviscol (void)
int getviscol2 (colnr_T col, colnr_T coladd)
int coladvance_force (colnr_T wcol)
int coladvance (colnr_T wcol)
int getvpos (pos_T *pos, colnr_T wcol)
int inc_cursor (void)
int dec_cursor (void)
linenr_T get_cursor_rel_lnum (win_T *wp, linenr_T lnum)
void check_pos (buf_T *buf, pos_T *pos)
void check_cursor_lnum (void)
void check_cursor_col (void)
void check_cursor_col_win (win_T *win)
void check_cursor (void)
void adjust_cursor_col (void)
bool leftcol_changed (void)
int gchar_cursor (void)
void pchar_cursor (char_u c)
char_uget_cursor_line_ptr (void)
char_uget_cursor_pos_ptr (void)

Function Documentation

◆ adjust_cursor_col()

void adjust_cursor_col ( void  )

◆ check_cursor()

void check_cursor ( void  )

◆ check_cursor_col()

void check_cursor_col ( void  )

◆ check_cursor_col_win()

void check_cursor_col_win ( win_T win)

Make sure win->w_cursor.col is valid. Special handling of insert-mode.

See also

◆ check_cursor_lnum()

void check_cursor_lnum ( void  )

◆ check_pos()

void check_pos ( buf_T buf,
pos_T pos 

◆ coladvance()

int coladvance ( colnr_T  wcol)

◆ coladvance_force()

int coladvance_force ( colnr_T  wcol)

◆ dec_cursor()

int dec_cursor ( void  )

◆ gchar_cursor()

int gchar_cursor ( void  )

◆ get_cursor_line_ptr()

char_u* get_cursor_line_ptr ( void  )

◆ get_cursor_pos_ptr()

char_u* get_cursor_pos_ptr ( void  )

◆ get_cursor_rel_lnum()

linenr_T get_cursor_rel_lnum ( win_T wp,
linenr_T  lnum 

Get the line number relative to the current cursor position, i.e. the difference between line number and cursor position. Only look for lines that can be visible, folded lines don't count.

lnumline number to get the result for

◆ getviscol()

int getviscol ( void  )

◆ getviscol2()

int getviscol2 ( colnr_T  col,
colnr_T  coladd 

◆ getvpos()

int getvpos ( pos_T pos,
colnr_T  wcol 

◆ inc_cursor()

int inc_cursor ( void  )

◆ leftcol_changed()

bool leftcol_changed ( void  )

◆ pchar_cursor()

void pchar_cursor ( char_u  c)