aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/extmark.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-10-26 10:45:11 +0200
committerGitHub <noreply@github.com>2021-10-26 10:45:11 +0200
commitf75d00456d6a04e403ec8971922a204acfab8c85 (patch)
tree19317872a166dc5bf3a0f50490281d8b4a2fc1b4 /src/nvim/extmark.c
parent09e96fe6096f07365eb65b51bb7f2fd0f1b043b0 (diff)
parentc8882ca7e75e2f085ec2e0943d5afa09efc9c8ca (diff)
downloadrneovim-f75d00456d6a04e403ec8971922a204acfab8c85.tar.gz
rneovim-f75d00456d6a04e403ec8971922a204acfab8c85.tar.bz2
rneovim-f75d00456d6a04e403ec8971922a204acfab8c85.zip
Merge pull request #16147 from bfredl/neomark
refactor(api): move extmark API to its own file
Diffstat (limited to 'src/nvim/extmark.c')
-rw-r--r--src/nvim/extmark.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/nvim/extmark.c b/src/nvim/extmark.c
index 05d1d69f9d..a3a7791d21 100644
--- a/src/nvim/extmark.c
+++ b/src/nvim/extmark.c
@@ -30,7 +30,7 @@
#include <assert.h>
-#include "nvim/api/vim.h"
+#include "nvim/api/extmark.h"
#include "nvim/buffer.h"
#include "nvim/buffer_updates.h"
#include "nvim/charset.h"
@@ -715,16 +715,3 @@ void extmark_move_region(buf_T *buf, int start_row, colnr_T start_col, bcount_t
.data.move = move }));
}
}
-
-uint64_t src2ns(Integer *src_id)
-{
- if (*src_id == 0) {
- *src_id = nvim_create_namespace((String)STRING_INIT);
- }
- if (*src_id < 0) {
- return UINT64_MAX;
- } else {
- return (uint64_t)(*src_id);
- }
-}
-