diff options
Diffstat (limited to 'src/nvim/memory.c')
-rw-r--r-- | src/nvim/memory.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c index 5e6c6a8189..547a9015b7 100644 --- a/src/nvim/memory.c +++ b/src/nvim/memory.c @@ -8,7 +8,7 @@ #include <stdbool.h> #include <string.h> -#include "nvim/api/vim.h" +#include "nvim/api/extmark.h" #include "nvim/context.h" #include "nvim/decoration.h" #include "nvim/eval.h" @@ -510,7 +510,7 @@ void do_outofmem_msg(size_t size) * message fails, e.g. when setting v:errmsg. */ did_outofmem_msg = true; - EMSGU(_("E342: Out of memory! (allocating %" PRIu64 " bytes)"), size); + semsg(_("E342: Out of memory! (allocating %" PRIu64 " bytes)"), (uint64_t)size); } } @@ -679,7 +679,7 @@ void free_all_mem(void) } eval_clear(); - api_vim_free_all_mem(); + api_extmark_free_all_mem(); ctx_free_all(); // Free all buffers. Reset 'autochdir' to avoid accessing things that |