diff options
author | G-flat <63449095+G-flat@users.noreply.github.com> | 2020-10-05 15:15:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 15:15:10 +0800 |
commit | b0769729c805ef33d47f383fd8b2ab18da5fa33c (patch) | |
tree | ee66236c5172c1b65b8a6415f756a78d6db29ac5 /src/nvim/api/buffer.c | |
parent | 1d08dfab5b057b51aed98450afd3ad1c888870ff (diff) | |
parent | f7aeac7263c792e1503f9169abed20b6f5b9da99 (diff) | |
download | rneovim-b0769729c805ef33d47f383fd8b2ab18da5fa33c.tar.gz rneovim-b0769729c805ef33d47f383fd8b2ab18da5fa33c.tar.bz2 rneovim-b0769729c805ef33d47f383fd8b2ab18da5fa33c.zip |
Merge pull request #1 from neovim/master
rebase
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r-- | src/nvim/api/buffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index e77870dcf3..174f6e94a9 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -1420,7 +1420,7 @@ Integer nvim_buf_set_extmark(Buffer buffer, Integer ns_id, } id = extmark_set(buf, (uint64_t)ns_id, id, - (int)line, (colnr_T)col, line2, col2, decor, kExtmarkUndo); + (int)line, (colnr_T)col, line2, col2, decor, kExtmarkNoUndo); return (Integer)id; @@ -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; } |