mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
docs: add 'statuscolumn' docstrings (#21717)
This commit is contained in:
parent
dc7edce650
commit
f62da7381e
@ -398,6 +398,10 @@ static int get_sign_attrs(buf_T *buf, linenr_T lnum, SignTextAttrs *sattrs, int
|
|||||||
return num_signs;
|
return num_signs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Prepare and build the 'statuscolumn' string for line "lnum" in window "wp".
|
||||||
|
/// Fill "stcp" with the built status column string and attributes.
|
||||||
|
///
|
||||||
|
/// @param[out] stcp Status column attributes
|
||||||
static void get_statuscol_str(win_T *wp, linenr_T lnum, int row, int startrow, int filler_lines,
|
static void get_statuscol_str(win_T *wp, linenr_T lnum, int row, int startrow, int filler_lines,
|
||||||
int cul_attr, int sign_num_attr, SignTextAttrs *sattrs,
|
int cul_attr, int sign_num_attr, SignTextAttrs *sattrs,
|
||||||
foldinfo_T foldinfo, char_u *extra, statuscol_T *stcp)
|
foldinfo_T foldinfo, char_u *extra, statuscol_T *stcp)
|
||||||
@ -457,6 +461,11 @@ static void get_statuscol_str(win_T *wp, linenr_T lnum, int row, int startrow, i
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get information needed to display the next segment in the 'statuscolumn'.
|
||||||
|
/// If not yet at the end, prepare for next segment and decrement "draw_state".
|
||||||
|
///
|
||||||
|
/// @param stcp Status column attributes
|
||||||
|
/// @param[out] draw_state Current draw state in win_line()
|
||||||
static void get_statuscol_display_info(LineDrawState *draw_state, int *char_attr, int *n_extrap,
|
static void get_statuscol_display_info(LineDrawState *draw_state, int *char_attr, int *n_extrap,
|
||||||
int *c_extrap, int *c_finalp, char_u *extra, char **pp_extra,
|
int *c_extrap, int *c_finalp, char_u *extra, char **pp_extra,
|
||||||
statuscol_T *stcp)
|
statuscol_T *stcp)
|
||||||
|
@ -868,6 +868,12 @@ void draw_tabline(void)
|
|||||||
redraw_tabline = false;
|
redraw_tabline = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Build the 'statuscolumn' string for line "lnum". If "setnum" is true,
|
||||||
|
/// update the "lnum" and "relnum" vim-variables for a new line.
|
||||||
|
///
|
||||||
|
/// @param hlrec HL attributes (can be NULL)
|
||||||
|
/// @param stcp Status column attributes (can be NULL)
|
||||||
|
/// @return The width of the built status column string for line "lnum"
|
||||||
int build_statuscol_str(win_T *wp, bool setnum, bool wrap, linenr_T lnum, long relnum, int maxwidth,
|
int build_statuscol_str(win_T *wp, bool setnum, bool wrap, linenr_T lnum, long relnum, int maxwidth,
|
||||||
int fillchar, char *buf, stl_hlrec_t **hlrec, statuscol_T *stcp)
|
int fillchar, char *buf, stl_hlrec_t **hlrec, statuscol_T *stcp)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user