Lines Matching refs:lp
335 inc(pos_T *lp) in inc() argument
340 if (lp->col != MAXCOL) in inc()
342 p = ml_get_pos(lp); in inc()
349 lp->col += l; in inc()
352 lp->col++; in inc()
353 lp->coladd = 0; in inc()
357 if (lp->lnum != curbuf->b_ml.ml_line_count) // there is a next line in inc()
359 lp->col = 0; in inc()
360 lp->lnum++; in inc()
361 lp->coladd = 0; in inc()
371 incl(pos_T *lp) in incl() argument
375 if ((r = inc(lp)) >= 1 && lp->col) in incl()
376 r = inc(lp); in incl()
393 dec(pos_T *lp) in dec() argument
397 lp->coladd = 0; in dec()
398 if (lp->col == MAXCOL) in dec()
401 p = ml_get(lp->lnum); in dec()
402 lp->col = (colnr_T)STRLEN(p); in dec()
404 lp->col -= (*mb_head_off)(p, p + lp->col); in dec()
408 if (lp->col > 0) in dec()
411 lp->col--; in dec()
414 p = ml_get(lp->lnum); in dec()
415 lp->col -= (*mb_head_off)(p, p + lp->col); in dec()
420 if (lp->lnum > 1) in dec()
423 lp->lnum--; in dec()
424 p = ml_get(lp->lnum); in dec()
425 lp->col = (colnr_T)STRLEN(p); in dec()
427 lp->col -= (*mb_head_off)(p, p + lp->col); in dec()
439 decl(pos_T *lp) in decl() argument
443 if ((r = dec(lp)) == 1 && lp->col) in decl()
444 r = dec(lp); in decl()