aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-11-07 15:34:32 +0100
committerGitHub <noreply@github.com>2020-11-07 15:34:32 +0100
commit643f4a178751df34b27189f7aebea313b17bad3b (patch)
treeca85909dc4e89115dd5c8b5d79158185bc3ca8ff /src/nvim/api/vim.c
parente5d83a3bf344a4ab0ef539d70004c2b771e1044a (diff)
parent8497d4b3ea9822cfb4d2bf2437997e837fd4827c (diff)
downloadrneovim-643f4a178751df34b27189f7aebea313b17bad3b.tar.gz
rneovim-643f4a178751df34b27189f7aebea313b17bad3b.tar.bz2
rneovim-643f4a178751df34b27189f7aebea313b17bad3b.zip
Merge pull request #13241 from bfredl/decoration
decoration: split out "decoration" from "extmark" module
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index 63ca0f0e76..5050f1842d 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -41,7 +41,7 @@
#include "nvim/ops.h"
#include "nvim/option.h"
#include "nvim/state.h"
-#include "nvim/extmark.h"
+#include "nvim/decoration.h"
#include "nvim/syntax.h"
#include "nvim/getchar.h"
#include "nvim/os/input.h"
@@ -2685,7 +2685,7 @@ void nvim__screenshot(String path)
ui_call_screenshot(path);
}
-static void clear_provider(DecorationProvider *p)
+static void clear_provider(DecorProvider *p)
{
NLUA_CLEAR_REF(p->redraw_start);
NLUA_CLEAR_REF(p->redraw_buf);
@@ -2711,7 +2711,7 @@ static void clear_provider(DecorationProvider *p)
/// callback can return `false` to disable the provider until the next redraw.
/// Similarily, return `false` in `on_win` will skip the `on_lines` calls
/// for that window (but any extmarks set in `on_win` will still be used).
-/// A plugin managing multiple sources of decorations should ideally only set
+/// A plugin managing multiple sources of decoration should ideally only set
/// one provider, and merge the sources internally. You can use multiple `ns_id`
/// for the extmarks set/modified inside the callback anyway.
///
@@ -2739,7 +2739,7 @@ void nvim_set_decoration_provider(Integer ns_id, DictionaryOf(LuaRef) opts,
Error *err)
FUNC_API_SINCE(7) FUNC_API_LUA_ONLY
{
- DecorationProvider *p = get_provider((NS)ns_id, true);
+ DecorProvider *p = get_provider((NS)ns_id, true);
clear_provider(p);
// regardless of what happens, it seems good idea to redraw