summaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-07-08 16:50:37 +0200
committerBram Moolenaar <Bram@vim.org>2018-07-08 16:50:37 +0200
commite0be167a805fd547c25ec1ec97fd4c7f13046236 (patch)
tree423fb96f7b30329ef0b7ccf3d4b2a02620e7929c /src/undo.c
parent4cde86c2ef885e82fff3d925dee9fb5671c025cf (diff)
downloadvim-git-e0be167a805fd547c25ec1ec97fd4c7f13046236.tar.gz
patch 8.1.0166: using dict_add_nr_str() is clumsyv8.1.0166
Problem: Using dict_add_nr_str() is clumsy. Solution: Split into two functions. (Ozaki Kiichi, closes #3154)
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/undo.c b/src/undo.c
index be4e22ed6..b3a627686 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -3567,14 +3567,14 @@ u_eval_tree(u_header_T *first_uhp, list_T *list)
dict = dict_alloc();
if (dict == NULL)
return;
- dict_add_nr_str(dict, "seq", uhp->uh_seq, NULL);
- dict_add_nr_str(dict, "time", (long)uhp->uh_time, NULL);
+ dict_add_number(dict, "seq", uhp->uh_seq);
+ dict_add_number(dict, "time", (long)uhp->uh_time);
if (uhp == curbuf->b_u_newhead)
- dict_add_nr_str(dict, "newhead", 1, NULL);
+ dict_add_number(dict, "newhead", 1);
if (uhp == curbuf->b_u_curhead)
- dict_add_nr_str(dict, "curhead", 1, NULL);
+ dict_add_number(dict, "curhead", 1);
if (uhp->uh_save_nr > 0)
- dict_add_nr_str(dict, "save", uhp->uh_save_nr, NULL);
+ dict_add_number(dict, "save", uhp->uh_save_nr);
if (uhp->uh_alt_next.ptr != NULL)
{