Data Structures | Functions
move.c File Reference
#include <assert.h>
#include <inttypes.h>
#include <stdbool.h>
#include "nvim/ascii.h"
#include "nvim/buffer.h"
#include "nvim/charset.h"
#include "nvim/cursor.h"
#include "nvim/diff.h"
#include "nvim/edit.h"
#include "nvim/fold.h"
#include "nvim/mbyte.h"
#include "nvim/memline.h"
#include "nvim/misc1.h"
#include "nvim/move.h"
#include "nvim/option.h"
#include "nvim/plines.h"
#include "nvim/popupmnu.h"
#include "nvim/screen.h"
#include "nvim/strings.h"
#include "nvim/window.h"

Data Structures

struct  lineoff_T
 

Functions

void reset_cursorline (void)
 
void redraw_for_cursorline (win_T *wp) FUNC_ATTR_NONNULL_ALL
 
void update_topline_redraw (void)
 
void update_topline (win_T *wp)
 
void update_topline_win (win_T *win)
 
void update_curswant (void)
 
void check_cursor_moved (win_T *wp)
 
void changed_window_setting (void)
 
void changed_window_setting_win (win_T *wp)
 
void set_topline (win_T *wp, linenr_T lnum)
 
void changed_cline_bef_curs (void)
 
void changed_cline_bef_curs_win (win_T *wp)
 
void changed_line_abv_curs (void)
 
void changed_line_abv_curs_win (win_T *wp)
 
void validate_botline (win_T *wp)
 
void invalidate_botline (void)
 
void invalidate_botline_win (win_T *wp)
 
void approximate_botline_win (win_T *wp)
 
int cursor_valid (void)
 
void validate_cursor (void)
 
void validate_virtcol (void)
 
void validate_virtcol_win (win_T *wp)
 
void validate_cheight (void)
 
void validate_cursor_col (void)
 
int win_col_off (win_T *wp)
 
int curwin_col_off (void)
 
int win_col_off2 (win_T *wp)
 
int curwin_col_off2 (void)
 
void curs_columns (win_T *wp, int may_scroll)
 
void textpos2screenpos (win_T *wp, pos_T *pos, int *rowp, int *scolp, int *ccolp, int *ecolp, bool local)
 
bool scrolldown (long line_count, int byfold)
 
bool scrollup (long line_count, int byfold)
 
void check_topfill (win_T *wp, bool down)
 
void scrolldown_clamp (void)
 
void scrollup_clamp (void)
 
void scroll_cursor_top (int min_scroll, int always)
 
void set_empty_rows (win_T *wp, int used)
 
void scroll_cursor_bot (int min_scroll, int set_topbot)
 
void scroll_cursor_halfway (int atend)
 
void cursor_correct (void)
 
int onepage (Direction dir, long count)
 
void halfpage (bool flag, linenr_T Prenum)
 
void do_check_cursorbind (void)
 

Function Documentation

◆ approximate_botline_win()

void approximate_botline_win ( win_T wp)

◆ changed_cline_bef_curs()

void changed_cline_bef_curs ( void  )

◆ changed_cline_bef_curs_win()

void changed_cline_bef_curs_win ( win_T wp)

◆ changed_line_abv_curs()

void changed_line_abv_curs ( void  )

◆ changed_line_abv_curs_win()

void changed_line_abv_curs_win ( win_T wp)

◆ changed_window_setting()

void changed_window_setting ( void  )

◆ changed_window_setting_win()

void changed_window_setting_win ( win_T wp)

◆ check_cursor_moved()

void check_cursor_moved ( win_T wp)

◆ check_topfill()

void check_topfill ( win_T wp,
bool  down 
)

Don't end up with too many filler lines in the window.

Parameters
downwhen true scroll down when not enough space

◆ curs_columns()

void curs_columns ( win_T wp,
int  may_scroll 
)

◆ cursor_correct()

void cursor_correct ( void  )

◆ cursor_valid()

int cursor_valid ( void  )

◆ curwin_col_off()

int curwin_col_off ( void  )

◆ curwin_col_off2()

int curwin_col_off2 ( void  )

◆ do_check_cursorbind()

void do_check_cursorbind ( void  )

◆ halfpage()

void halfpage ( bool  flag,
linenr_T  Prenum 
)

◆ invalidate_botline()

void invalidate_botline ( void  )

◆ invalidate_botline_win()

void invalidate_botline_win ( win_T wp)

◆ onepage()

int onepage ( Direction  dir,
long  count 
)

◆ redraw_for_cursorline()

void redraw_for_cursorline ( win_T wp)

◆ reset_cursorline()

void reset_cursorline ( void  )

◆ scroll_cursor_bot()

void scroll_cursor_bot ( int  min_scroll,
int  set_topbot 
)

◆ scroll_cursor_halfway()

void scroll_cursor_halfway ( int  atend)

Recompute topline to put the cursor halfway across the window

Parameters
atendif true, also put the cursor halfway to the end of the file.

◆ scroll_cursor_top()

void scroll_cursor_top ( int  min_scroll,
int  always 
)

◆ scrolldown()

bool scrolldown ( long  line_count,
int  byfold 
)

Scroll the current window down by "line_count" logical lines. "CTRL-Y"

Parameters
line_countnumber of lines to scroll
byfoldif true, count a closed fold as one line

◆ scrolldown_clamp()

void scrolldown_clamp ( void  )

◆ scrollup()

bool scrollup ( long  line_count,
int  byfold 
)

Scroll the current window up by "line_count" logical lines. "CTRL-E"

Parameters
line_countnumber of lines to scroll
byfoldif true, count a closed fold as one line

◆ scrollup_clamp()

void scrollup_clamp ( void  )

◆ set_empty_rows()

void set_empty_rows ( win_T wp,
int  used 
)

◆ set_topline()

void set_topline ( win_T wp,
linenr_T  lnum 
)

◆ textpos2screenpos()

void textpos2screenpos ( win_T wp,
pos_T pos,
int *  rowp,
int *  scolp,
int *  ccolp,
int *  ecolp,
bool  local 
)

Compute the screen position of text character at "pos" in window "wp" The resulting values are one-based, zero when character is not visible.

Parameters
[out]rowpscreen row
[out]scolpstart screen column
[out]ccolpcursor screen column
[out]ecolpend screen column

◆ update_curswant()

void update_curswant ( void  )

◆ update_topline()

void update_topline ( win_T wp)

◆ update_topline_redraw()

void update_topline_redraw ( void  )

◆ update_topline_win()

void update_topline_win ( win_T win)

◆ validate_botline()

void validate_botline ( win_T wp)

◆ validate_cheight()

void validate_cheight ( void  )

◆ validate_cursor()

void validate_cursor ( void  )

◆ validate_cursor_col()

void validate_cursor_col ( void  )

◆ validate_virtcol()

void validate_virtcol ( void  )

◆ validate_virtcol_win()

void validate_virtcol_win ( win_T wp)

◆ win_col_off()

int win_col_off ( win_T wp)

◆ win_col_off2()

int win_col_off2 ( win_T wp)