Functions
indent.c File Reference
#include <assert.h>
#include <inttypes.h>
#include <stdbool.h>
#include "nvim/ascii.h"
#include "nvim/buffer.h"
#include "nvim/change.h"
#include "nvim/charset.h"
#include "nvim/cursor.h"
#include "nvim/eval.h"
#include "nvim/extmark.h"
#include "nvim/indent.h"
#include "nvim/mark.h"
#include "nvim/memline.h"
#include "nvim/memory.h"
#include "nvim/misc1.h"
#include "nvim/move.h"
#include "nvim/option.h"
#include "nvim/plines.h"
#include "nvim/regexp.h"
#include "nvim/screen.h"
#include "nvim/search.h"
#include "nvim/strings.h"
#include "nvim/undo.h"

Functions

int get_indent (void)
 
int get_indent_lnum (linenr_T lnum)
 
int get_indent_buf (buf_T *buf, linenr_T lnum)
 
int get_indent_str (const char_u *ptr, int ts, bool list) FUNC_ATTR_NONNULL_ALL
 
int get_indent_str_vtab (const char_u *ptr, long ts, long *vts, bool list)
 
int set_indent (int size, int flags)
 
int get_number_indent (linenr_T lnum)
 
int get_breakindent_win (win_T *wp, char_u *line) FUNC_ATTR_NONNULL_ALL
 
int inindent (int extra)
 
int get_expr_indent (void)
 
int get_lisp_indent (void)
 

Function Documentation

◆ get_breakindent_win()

int get_breakindent_win ( win_T wp,
char_u line 
)

◆ get_expr_indent()

int get_expr_indent ( void  )

◆ get_indent()

int get_indent ( void  )

◆ get_indent_buf()

int get_indent_buf ( buf_T buf,
linenr_T  lnum 
)

◆ get_indent_lnum()

int get_indent_lnum ( linenr_T  lnum)

◆ get_indent_str()

int get_indent_str ( const char_u ptr,
int  ts,
bool  list 
)

Count the size (in window cells) of the indent in line "ptr", with 'tabstop' at "ts". If

Parameters
listis true, count only screen size for tabs.

◆ get_indent_str_vtab()

int get_indent_str_vtab ( const char_u ptr,
long  ts,
long *  vts,
bool  list 
)

Count the size (in window cells) of the indent in line "ptr", using variable tabstops. if "list" is true, count only screen size for tabs.

◆ get_lisp_indent()

int get_lisp_indent ( void  )

◆ get_number_indent()

int get_number_indent ( linenr_T  lnum)

◆ inindent()

int inindent ( int  extra)

◆ set_indent()

int set_indent ( int  size,
int  flags 
)