Lines Matching refs:b_ml

214     if (start_lnum < 1 || start_lnum > buf->b_ml.ml_line_count)  in prop_add_one()
219 if (end_lnum < start_lnum || end_lnum > buf->b_ml.ml_line_count) in prop_add_one()
225 if (buf->b_ml.ml_mfp == NULL) in prop_add_one()
238 textlen = buf->b_ml.ml_line_len - proplen * sizeof(textprop_T); in prop_add_one()
260 newtext = alloc(buf->b_ml.ml_line_len + sizeof(textprop_T)); in prop_add_one()
264 mch_memmove(newtext, buf->b_ml.ml_line_ptr, textlen); in prop_add_one()
294 if (buf->b_ml.ml_flags & ML_LINE_DIRTY) in prop_add_one()
295 vim_free(buf->b_ml.ml_line_ptr); in prop_add_one()
296 buf->b_ml.ml_line_ptr = newtext; in prop_add_one()
297 buf->b_ml.ml_line_len += sizeof(textprop_T); in prop_add_one()
298 buf->b_ml.ml_flags |= ML_LINE_DIRTY; in prop_add_one()
469 if ((!buf->b_has_textprop && !will_change) || buf->b_ml.ml_mfp == NULL) in get_text_props()
475 proplen = buf->b_ml.ml_line_len - textlen; in get_text_props()
564 if (curbuf->b_ml.ml_flags & ML_LINE_DIRTY) in set_text_props()
565 vim_free(curbuf->b_ml.ml_line_ptr); in set_text_props()
566 curbuf->b_ml.ml_line_ptr = newtext; in set_text_props()
567 curbuf->b_ml.ml_line_len = textlen + len; in set_text_props()
568 curbuf->b_ml.ml_flags |= ML_LINE_DIRTY; in set_text_props()
684 if (lnum > buf->b_ml.ml_line_count) in f_prop_clear()
688 if ((size_t)buf->b_ml.ml_line_len > len) in f_prop_clear()
691 if (!(buf->b_ml.ml_flags & ML_LINE_DIRTY)) in f_prop_clear()
698 buf->b_ml.ml_line_ptr = newtext; in f_prop_clear()
699 buf->b_ml.ml_flags |= ML_LINE_DIRTY; in f_prop_clear()
701 buf->b_ml.ml_line_len = (int)len; in f_prop_clear()
744 if (buf->b_ml.ml_mfp == NULL) in f_prop_find()
776 if (lnum < 1 || lnum > buf->b_ml.ml_line_count) in f_prop_find()
819 int count = (int)((buf->b_ml.ml_line_len - textlen) in f_prop_find()
884 if (lnum >= buf->b_ml.ml_line_count) in f_prop_find()
895 col = dir < 0 ? buf->b_ml.ml_line_len : 1; in f_prop_find()
919 if (lnum < 1 || lnum > buf->b_ml.ml_line_count) in f_prop_list()
929 int count = (int)((buf->b_ml.ml_line_len - textlen) in f_prop_list()
997 if (buf->b_ml.ml_mfp == NULL) in f_prop_remove()
1027 end = buf->b_ml.ml_line_count; in f_prop_remove()
1033 if (lnum > buf->b_ml.ml_line_count) in f_prop_remove()
1037 if ((size_t)buf->b_ml.ml_line_len > len) in f_prop_remove()
1042 for (idx = 0; idx < (buf->b_ml.ml_line_len - len) in f_prop_remove()
1045 char_u *cur_prop = buf->b_ml.ml_line_ptr + len in f_prop_remove()
1053 if (!(buf->b_ml.ml_flags & ML_LINE_DIRTY)) in f_prop_remove()
1055 char_u *newptr = alloc(buf->b_ml.ml_line_len); in f_prop_remove()
1060 mch_memmove(newptr, buf->b_ml.ml_line_ptr, in f_prop_remove()
1061 buf->b_ml.ml_line_len); in f_prop_remove()
1062 buf->b_ml.ml_line_ptr = newptr; in f_prop_remove()
1063 buf->b_ml.ml_flags |= ML_LINE_DIRTY; in f_prop_remove()
1065 cur_prop = buf->b_ml.ml_line_ptr + len in f_prop_remove()
1069 taillen = buf->b_ml.ml_line_len - len in f_prop_remove()
1074 buf->b_ml.ml_line_len -= sizeof(textprop_T); in f_prop_remove()
1522 textlen = curbuf->b_ml.ml_line_len - proplen * sizeof(textprop_T); in adjust_prop_columns()
1541 if (curbuf->b_ml.ml_line_lnum != lnum) in adjust_prop_columns()
1553 if ((curbuf->b_ml.ml_flags & ML_LINE_DIRTY) == 0) in adjust_prop_columns()
1554 curbuf->b_ml.ml_line_ptr = in adjust_prop_columns()
1555 vim_memsave(curbuf->b_ml.ml_line_ptr, newlen); in adjust_prop_columns()
1556 curbuf->b_ml.ml_flags |= ML_LINE_DIRTY; in adjust_prop_columns()
1557 curbuf->b_ml.ml_line_len = newlen; in adjust_prop_columns()