summaryrefslogtreecommitdiff
path: root/src/session.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-09-01 16:01:30 +0200
committerBram Moolenaar <Bram@vim.org>2019-09-01 16:01:30 +0200
commitda6c03342117fb7f4a8110bd9e8627b612a05a64 (patch)
tree978562abf59627127149d50d9f2650a69e78c078 /src/session.c
parent0fdddeeb66bbe326860ddfc573eba42f6487bbda (diff)
downloadvim-git-da6c03342117fb7f4a8110bd9e8627b612a05a64.tar.gz
patch 8.1.1957: more code can be moved to evalvars.cv8.1.1957
Problem: More code can be moved to evalvars.c. Solution: Move code to where it fits better. (Yegappan Lakshmanan, closes #4883)
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/session.c b/src/session.c
index 473d94f88..7139c5235 100644
--- a/src/session.c
+++ b/src/session.c
@@ -500,13 +500,14 @@ put_view(
static int
store_session_globals(FILE *fd)
{
+ hashtab_T *gvht = get_globvar_ht();
hashitem_T *hi;
dictitem_T *this_var;
int todo;
char_u *p, *t;
- todo = (int)globvarht.ht_used;
- for (hi = globvarht.ht_array; todo > 0; ++hi)
+ todo = (int)gvht->ht_used;
+ for (hi = gvht->ht_array; todo > 0; ++hi)
{
if (!HASHITEM_EMPTY(hi))
{