aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-04 21:03:53 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-07-05 21:26:46 -0400
commit18ce2d30390e3f7292f615f150b31612163cffbe (patch)
tree4b2423fb1059f0ad212ecbcf393b81f68090a6ce
parent8062e6ff88247e434890dfdfcc25ae293dafc257 (diff)
downloadrneovim-18ce2d30390e3f7292f615f150b31612163cffbe.tar.gz
rneovim-18ce2d30390e3f7292f615f150b31612163cffbe.tar.bz2
rneovim-18ce2d30390e3f7292f615f150b31612163cffbe.zip
vim-patch:8.1.1632: build with EXITFREE but without +arabic fails
Problem: Build with EXITFREE but without +arabic fails. Solution: Rename the function and adjust #ifdefs. (closes vim/vim#4613) https://github.com/vim/vim/commit/48ac671fe5cb5a7c2d5263d2f122e5e903022e30
-rw-r--r--src/nvim/ex_getln.c2
-rw-r--r--src/nvim/memory.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 1f258985a6..093067894f 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -2495,7 +2495,7 @@ static void realloc_cmdbuff(int len)
static char_u *arshape_buf = NULL;
# if defined(EXITFREE)
-void free_cmdline_buf(void)
+void free_arshape_buf(void)
{
xfree(arshape_buf);
}
diff --git a/src/nvim/memory.c b/src/nvim/memory.c
index dced03f3d5..1384aa177b 100644
--- a/src/nvim/memory.c
+++ b/src/nvim/memory.c
@@ -648,7 +648,7 @@ void free_all_mem(void)
// Free all option values. Must come after closing windows.
free_all_options();
- free_cmdline_buf();
+ free_arshape_buf();
/* Clear registers. */
clear_registers();