mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
patch 8.1.1035: prop_remove() second argument is not optional
Problem: prop_remove() second argument is not optional. Solution: Fix argument count. Use "buf" instead of "curbuf". (closes #4147)
This commit is contained in:
@@ -629,7 +629,10 @@ f_prop_remove(typval_T *argvars, typval_T *rettv)
|
||||
mch_memmove(newptr, buf->b_ml.ml_line_ptr,
|
||||
buf->b_ml.ml_line_len);
|
||||
buf->b_ml.ml_line_ptr = newptr;
|
||||
curbuf->b_ml.ml_flags |= ML_LINE_DIRTY;
|
||||
buf->b_ml.ml_flags |= ML_LINE_DIRTY;
|
||||
|
||||
cur_prop = buf->b_ml.ml_line_ptr + len
|
||||
+ idx * sizeof(textprop_T);
|
||||
}
|
||||
|
||||
taillen = buf->b_ml.ml_line_len - len
|
||||
|
Reference in New Issue
Block a user