diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-22 13:20:43 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-22 13:20:43 +0100 |
commit | 0a2f578e22de7e4d82075578afdd5fc2d2dd8134 (patch) | |
tree | 4edb367d670941ee30705c803b19e3318b98b692 /src/textprop.c | |
parent | 2ace1bd652211506b60faddb8243e48400c89492 (diff) | |
download | vim-git-0a2f578e22de7e4d82075578afdd5fc2d2dd8134.tar.gz |
patch 8.1.1035: prop_remove() second argument is not optionalv8.1.1035
Problem: prop_remove() second argument is not optional.
Solution: Fix argument count. Use "buf" instead of "curbuf". (closes #4147)
Diffstat (limited to 'src/textprop.c')
-rw-r--r-- | src/textprop.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/textprop.c b/src/textprop.c index 674faebe2..34738adc4 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -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 |