Lines Matching refs:bdp

480     struct block_def	*bdp)  in block_insert()  argument
497 block_prep(oap, bdp, lnum, TRUE); in block_insert()
498 if (bdp->is_short && b_insert) in block_insert()
505 ts_val = bdp->start_char_vcols; in block_insert()
506 spaces = bdp->startspaces; in block_insert()
509 offset = bdp->textcol; in block_insert()
513 ts_val = bdp->end_char_vcols; in block_insert()
514 if (!bdp->is_short) // spaces = padding after block in block_insert()
516 spaces = (bdp->endspaces ? ts_val - bdp->endspaces : 0); in block_insert()
519 offset = bdp->textcol + bdp->textlen - (spaces != 0); in block_insert()
524 if (!bdp->is_MAX) in block_insert()
525 spaces = (oap->end_vcol - bdp->end_vcol) + 1; in block_insert()
527 offset = bdp->textcol + bdp->textlen; in block_insert()
567 if (spaces && !bdp->is_short) in block_insert()
2189 struct block_def *bdp, in block_prep() argument
2205 bdp->startspaces = 0; in block_prep()
2206 bdp->endspaces = 0; in block_prep()
2207 bdp->textlen = 0; in block_prep()
2208 bdp->start_vcol = 0; in block_prep()
2209 bdp->end_vcol = 0; in block_prep()
2210 bdp->is_short = FALSE; in block_prep()
2211 bdp->is_oneChar = FALSE; in block_prep()
2212 bdp->pre_whitesp = 0; in block_prep()
2213 bdp->pre_whitesp_c = 0; in block_prep()
2214 bdp->end_char_vcols = 0; in block_prep()
2215 bdp->start_char_vcols = 0; in block_prep()
2220 while (bdp->start_vcol < oap->start_vcol && *pstart) in block_prep()
2223 incr = lbr_chartabsize(line, pstart, (colnr_T)bdp->start_vcol); in block_prep()
2224 bdp->start_vcol += incr; in block_prep()
2227 bdp->pre_whitesp += incr; in block_prep()
2228 bdp->pre_whitesp_c++; in block_prep()
2232 bdp->pre_whitesp = 0; in block_prep()
2233 bdp->pre_whitesp_c = 0; in block_prep()
2238 bdp->start_char_vcols = incr; in block_prep()
2239 if (bdp->start_vcol < oap->start_vcol) // line too short in block_prep()
2241 bdp->end_vcol = bdp->start_vcol; in block_prep()
2242 bdp->is_short = TRUE; in block_prep()
2244 bdp->endspaces = oap->end_vcol - oap->start_vcol + 1; in block_prep()
2250 bdp->startspaces = bdp->start_vcol - oap->start_vcol; in block_prep()
2251 if (is_del && bdp->startspaces) in block_prep()
2252 bdp->startspaces = bdp->start_char_vcols - bdp->startspaces; in block_prep()
2254 bdp->end_vcol = bdp->start_vcol; in block_prep()
2255 if (bdp->end_vcol > oap->end_vcol) // it's all in one character in block_prep()
2257 bdp->is_oneChar = TRUE; in block_prep()
2259 bdp->endspaces = bdp->start_char_vcols - bdp->startspaces; in block_prep()
2262 bdp->startspaces += oap->end_vcol - oap->start_vcol + 1; in block_prep()
2263 bdp->endspaces = bdp->start_char_vcols - bdp->startspaces; in block_prep()
2267 bdp->startspaces = oap->end_vcol - oap->start_vcol + 1; in block_prep()
2273 bdp->startspaces = bdp->start_char_vcols in block_prep()
2274 - (bdp->start_vcol - oap->start_vcol); in block_prep()
2275 bdp->endspaces = bdp->end_vcol - oap->end_vcol - 1; in block_prep()
2282 while (bdp->end_vcol <= oap->end_vcol && *pend != NUL) in block_prep()
2286 incr = lbr_chartabsize_adv(line, &pend, (colnr_T)bdp->end_vcol); in block_prep()
2287 bdp->end_vcol += incr; in block_prep()
2289 if (bdp->end_vcol <= oap->end_vcol in block_prep()
2294 bdp->is_short = TRUE; in block_prep()
2300 bdp->endspaces = oap->end_vcol - bdp->end_vcol in block_prep()
2303 bdp->endspaces = 0; // replace doesn't add characters in block_prep()
2305 else if (bdp->end_vcol > oap->end_vcol) in block_prep()
2307 bdp->endspaces = bdp->end_vcol - oap->end_vcol - 1; in block_prep()
2308 if (!is_del && bdp->endspaces) in block_prep()
2310 bdp->endspaces = incr - bdp->endspaces; in block_prep()
2316 bdp->end_char_vcols = incr; in block_prep()
2317 if (is_del && bdp->startspaces) in block_prep()
2319 bdp->textlen = (int)(pend - pstart); in block_prep()
2321 bdp->textcol = (colnr_T) (pstart - line); in block_prep()
2322 bdp->textstart = pstart; in block_prep()