Lines Matching defs:item_pos

80 	int item_pos = PATH_LAST_POSITION(tb->tb_path);
83 struct item_head *ih = item_head(tbS0, item_pos);
91 leaf_delete_items(&bi, 0, item_pos, 1, -1);
93 if (!item_pos && tb->CFL[0]) {
103 RFALSE(!item_pos && !tb->CFL[0],
112 int item_pos = PATH_LAST_POSITION(tb->tb_path);
113 struct item_head *ih = item_head(tbS0, item_pos);
127 leaf_cut_from_buffer(&bi, item_pos, pos_in_item,
130 RFALSE(!item_pos && !pos_in_item && !tb->CFL[0],
134 if (!item_pos && !pos_in_item && tb->CFL[0])
137 leaf_cut_from_buffer(&bi, item_pos, pos_in_item,
295 if (tb->item_pos == tb->lnum[0] - 1 && tb->lbytes != -1) {
313 leaf_insert_into_buf(&bi, n + tb->item_pos - ret, ih, body,
343 leaf_insert_into_buf(&bi, n + tb->item_pos - ret, ih, body,
372 if (ret && !tb->item_pos) {
380 leaf_paste_in_buffer(&bi, n + tb->item_pos - ret,
395 leaf_paste_entries(&bi, n + tb->item_pos - ret,
422 if (is_direntry_le_ih(item_head(tbS0, tb->item_pos))) {
430 RFALSE(tb->pos_in_item != ih_item_len(item_head(tbS0, tb->item_pos)),
433 ih_item_len(item_head(tbS0, tb->item_pos)), tb->pos_in_item);
442 tbS0_pos_ih = item_head(tbS0, tb->item_pos);
461 tbL0_ih = item_head(tb->L[0], n + tb->item_pos - ret);
465 leaf_paste_in_buffer(&bi, n + tb->item_pos - ret,
478 leaf_key(tb->L[0], n + tb->item_pos - ret)),
543 if (!tb->item_pos &&
564 leaf_paste_in_buffer(&bi, n + tb->item_pos - ret, tb->pos_in_item,
568 pasted = item_head(tb->L[0], n + tb->item_pos - ret);
570 leaf_paste_entries(&bi, n + tb->item_pos - ret,
591 if (tb->item_pos == tb->lnum[0] - 1 && tb->lbytes != -1)
607 if (tb->item_pos < tb->lnum[0]) {
631 if (n - tb->rnum[0] >= tb->item_pos) {
639 if (tb->item_pos == n - tb->rnum[0] + 1 && tb->rbytes != -1) {
696 leaf_insert_into_buf(&bi, tb->item_pos - n + tb->rnum[0] - 1,
699 if (tb->item_pos - n + tb->rnum[0] - 1 == 0)
717 entry_count = ih_entry_count(item_head(tbS0, tb->item_pos));
769 if (is_direntry_le_ih(item_head(tbS0, tb->item_pos))) {
784 RFALSE(tb->pos_in_item != ih_item_len(item_head(tbS0, tb->item_pos)),
787 ih_item_len(item_head(tbS0, tb->item_pos)));
851 leaf_paste_in_buffer(&bi, tb->item_pos - n + tb->rnum[0],
857 pasted = item_head(tb->R[0], tb->item_pos - n + tb->rnum[0]);
859 leaf_paste_entries(&bi, tb->item_pos - n + tb->rnum[0],
866 RFALSE(tb->item_pos - n + tb->rnum[0],
888 if (n - tb->rnum[0] > tb->item_pos) {
895 if (tb->item_pos == n - tb->rnum[0] && tb->rbytes != -1)
932 if (n - tb->snum[i] >= tb->item_pos) {
941 if (tb->item_pos == n - tb->snum[i] + 1 && tb->sbytes[i] != -1) {
1001 leaf_insert_into_buf(&bi, tb->item_pos - n + tb->snum[i] - 1,
1017 struct item_head *aux_ih = item_head(tbS0, tb->item_pos);
1072 struct item_head *aux_ih = item_head(tbS0, tb->item_pos);
1089 RFALSE(tb->pos_in_item != ih_item_len(item_head(tbS0, tb->item_pos)) ||
1152 struct item_head *ih_check = item_head(tbS0, tb->item_pos);
1171 leaf_paste_in_buffer(&bi, tb->item_pos - n + tb->snum[i],
1175 pasted = item_head(tb->S_new[i], tb->item_pos - n +
1178 leaf_paste_entries(&bi, tb->item_pos - n + tb->snum[i],
1201 if (n - tb->snum[i] > tb->item_pos) {
1209 if (tb->item_pos == n - tb->snum[i] && tb->sbytes[i] != -1)
1267 leaf_insert_into_buf(&bi, tb->item_pos, ih, body, tb->zeroes_num);
1270 if (tb->item_pos == 0) {
1282 struct item_head *pasted = item_head(tbS0, tb->item_pos);
1291 leaf_paste_in_buffer(&bi, tb->item_pos, tb->pos_in_item,
1295 leaf_paste_entries(&bi, tb->item_pos, tb->pos_in_item, 1,
1299 if (!tb->item_pos && !tb->pos_in_item) {
1317 struct item_head *pasted = item_head(tbS0, tb->item_pos);
1332 leaf_paste_in_buffer(&bi, tb->item_pos,
1360 if (0 <= tb->item_pos && tb->item_pos < tb->s0num) {
1395 tb->item_pos = PATH_LAST_POSITION(tb->tb_path),
1406 && is_indirect_le_ih(item_head(tbS0, tb->item_pos)))
1413 tb->item_pos -= (tb->lnum[0] - ((tb->lbytes != -1) ? 1 : 0));