aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mark.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/mark.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/mark.c')
-rw-r--r--src/nvim/mark.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/nvim/mark.c b/src/nvim/mark.c
index e88cc11c39..beb8dd6679 100644
--- a/src/nvim/mark.c
+++ b/src/nvim/mark.c
@@ -41,8 +41,6 @@
#include "nvim/os/os.h"
#include "nvim/os/time.h"
#include "nvim/os/input.h"
-#include "nvim/api/private/defs.h"
-#include "nvim/api/private/helpers.h"
/*
* This file contains routines to maintain and manipulate marks.
@@ -74,11 +72,8 @@ int setmark(int c)
/// Free fmark_T item
void free_fmark(fmark_T fm)
{
- if (fm.additional_data != NULL) {
- api_free_dictionary(*fm.additional_data);
- free(fm.additional_data);
- fm.additional_data = NULL;
- }
+ dict_unref(fm.additional_data);
+ fm.additional_data = NULL;
}
/// Free xfmark_T item