diff options
author | erw7 <erw7.github@gmail.com> | 2020-09-23 10:33:18 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2020-10-02 11:41:30 +0900 |
commit | 620c8fdfe91a382982fafaa376acd722fe0df051 (patch) | |
tree | b648771efa8f34039ff45361f6fe6f404bc126af /src/nvim/api/buffer.c | |
parent | 4f8d98e583beb4c1abd5d57b9898548396633030 (diff) | |
download | rneovim-620c8fdfe91a382982fafaa376acd722fe0df051.tar.gz rneovim-620c8fdfe91a382982fafaa376acd722fe0df051.tar.bz2 rneovim-620c8fdfe91a382982fafaa376acd722fe0df051.zip |
extmark: fix decoration ploblems with extmark
54ce101 changed the way undo entries are created when adding decorations.
This creates all sorts of problems.This change fixes the problem by
reverting to the previous behavior.
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r-- | src/nvim/api/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index e77870dcf3..2eeaeae522 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -1534,7 +1534,7 @@ Integer nvim_buf_add_highlight(Buffer buffer, ns_id = extmark_set(buf, ns_id, 0, (int)line, (colnr_T)col_start, end_line, (colnr_T)col_end, - decoration_hl(hl_id), kExtmarkUndo); + decoration_hl(hl_id), kExtmarkNoUndo); return src_id; } @@ -1664,7 +1664,7 @@ Integer nvim_buf_set_virtual_text(Buffer buffer, Decoration *decor = xcalloc(1, sizeof(*decor)); decor->virt_text = virt_text; - extmark_set(buf, ns_id, 0, (int)line, 0, -1, -1, decor, kExtmarkUndo); + extmark_set(buf, ns_id, 0, (int)line, 0, -1, -1, decor, kExtmarkNoUndo); return src_id; } |