aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2015-08-03 23:06:06 +0300
committerZyX <kp-pav@yandex.ru>2015-10-08 22:00:16 +0300
commit07d9ab26c6526c0d9af0435f1adeb614a1b88743 (patch)
treee3023fdfdd1d24ae1cae114d6e936e7b0641babc /src/nvim/ex_getln.c
parent56174572bc70947ab1e9e6ef48112272682ad6d8 (diff)
downloadrneovim-07d9ab26c6526c0d9af0435f1adeb614a1b88743.tar.gz
rneovim-07d9ab26c6526c0d9af0435f1adeb614a1b88743.tar.bz2
rneovim-07d9ab26c6526c0d9af0435f1adeb614a1b88743.zip
*: Make ShaDa code use VimL values for additional_\* data
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 38f84f2e7f..7be8d722b8 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -66,8 +66,6 @@
#include "nvim/os/os.h"
#include "nvim/event/loop.h"
#include "nvim/os/time.h"
-#include "nvim/api/private/defs.h"
-#include "nvim/api/private/helpers.h"
/*
* Variables shared between getcmdline(), redrawcmdline() and others.
@@ -4252,10 +4250,7 @@ static inline void hist_free_entry(histentry_T *hisptr)
FUNC_ATTR_NONNULL_ALL
{
xfree(hisptr->hisstr);
- if (hisptr->additional_elements != NULL) {
- api_free_array(*hisptr->additional_elements);
- xfree(hisptr->additional_elements);
- }
+ list_unref(hisptr->additional_elements);
clear_hist_entry(hisptr);
}