Mercurial > vim
diff src/viminfo.c @ 17922:4d63d47d87ef v8.1.1957
patch 8.1.1957: more code can be moved to evalvars.c
Commit: https://github.com/vim/vim/commit/da6c03342117fb7f4a8110bd9e8627b612a05a64
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 1 16:01:30 2019 +0200
patch 8.1.1957: more code can be moved to evalvars.c
Problem: More code can be moved to evalvars.c.
Solution: Move code to where it fits better. (Yegappan Lakshmanan,
closes #4883)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Sep 2019 16:15:03 +0200 |
parents | 9efb4dda9720 |
children | a5de1d88590d |
line wrap: on
line diff
--- a/src/viminfo.c +++ b/src/viminfo.c @@ -1277,6 +1277,7 @@ read_viminfo_varlist(vir_T *virp, int wr static void write_viminfo_varlist(FILE *fp) { + hashtab_T *gvht = get_globvar_ht(); hashitem_T *hi; dictitem_T *this_var; int todo; @@ -1290,8 +1291,8 @@ write_viminfo_varlist(FILE *fp) fputs(_("\n# global variables:\n"), fp); - 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)) {