aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/undo.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-01-11 23:20:03 +0300
committerZyX <kp-pav@yandex.ru>2017-03-29 10:07:43 +0300
commit210342d795a13e88579d3e55ae931463d16f241d (patch)
tree573a9b67eb7ed9142c75560aa1b38a37f7a5dc03 /src/nvim/undo.c
parent983a5532ca17060508ea308a9b7069dae4facb59 (diff)
downloadrneovim-210342d795a13e88579d3e55ae931463d16f241d.tar.gz
rneovim-210342d795a13e88579d3e55ae931463d16f241d.tar.bz2
rneovim-210342d795a13e88579d3e55ae931463d16f241d.zip
eval: Move dict_add_list and dict_add_dict to typval.c
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r--src/nvim/undo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c
index 6e21dccebb..8c75d28f2a 100644
--- a/src/nvim/undo.c
+++ b/src/nvim/undo.c
@@ -82,6 +82,7 @@
#include "nvim/vim.h"
#include "nvim/ascii.h"
#include "nvim/undo.h"
+#include "nvim/macros.h"
#include "nvim/cursor.h"
#include "nvim/edit.h"
#include "nvim/eval.h"
@@ -2956,7 +2957,7 @@ void u_eval_tree(u_header_T *first_uhp, list_T *list)
/* Recursive call to add alternate undo tree. */
u_eval_tree(uhp->uh_alt_next.ptr, alt_list);
- dict_add_list(dict, "alt", alt_list);
+ tv_dict_add_list(dict, S_LEN("alt"), alt_list);
}
tv_list_append_dict(list, dict);