Lines Matching refs:pos
17 static int coladvance2(pos_T *pos, int addspaces, int finetune, colnr_T wcol);
77 pos_T pos; in getviscol2() local
79 pos.lnum = curwin->w_cursor.lnum; in getviscol2()
80 pos.col = col; in getviscol2()
81 pos.coladd = coladd; in getviscol2()
82 getvvcol(curwin, &pos, &x, NULL, NULL); in getviscol2()
116 getvpos(pos_T *pos, colnr_T wcol) in getvpos() argument
118 return coladvance2(pos, FALSE, virtual_active(), wcol); in getvpos()
123 pos_T *pos, in coladvance2() argument
143 line = ml_get_buf(curbuf, pos->lnum, FALSE); in coladvance2()
237 ml_replace(pos->lnum, newline, FALSE); in coladvance2()
238 changed_bytes(pos->lnum, (colnr_T)idx); in coladvance2()
269 ml_replace(pos->lnum, newline, FALSE); in coladvance2()
270 changed_bytes(pos->lnum, idx); in coladvance2()
278 pos->col = 0; in coladvance2()
280 pos->col = idx; in coladvance2()
282 pos->coladd = 0; in coladvance2()
293 getvcol(curwin, pos, &scol, NULL, &ecol); in coladvance2()
294 pos->coladd = ecol - scol; in coladvance2()
303 pos->coladd = b; in coladvance2()
311 mb_adjustpos(curbuf, pos); in coladvance2()
503 check_pos(buf_T *buf, pos_T *pos) in check_pos() argument
508 if (pos->lnum > buf->b_ml.ml_line_count) in check_pos()
509 pos->lnum = buf->b_ml.ml_line_count; in check_pos()
511 if (pos->col > 0) in check_pos()
513 line = ml_get_buf(buf, pos->lnum, FALSE); in check_pos()
515 if (pos->col > len) in check_pos()
516 pos->col = len; in check_pos()