To: vim_dev@googlegroups.com Subject: Patch 8.2.4054 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4054 (after 8.2.4053) Problem: Vim9 script test fails. Solution: Add missing change. Files: src/vim9compile.c *** ../vim-8.2.4053/src/vim9compile.c 2022-01-09 21:32:57.713739111 +0000 --- src/vim9compile.c 2022-01-10 17:50:17.360196476 +0000 *************** *** 541,547 **** --- 541,559 ---- ht = &SCRIPT_VARS(sid); di = find_var_in_ht(ht, 0, name, TRUE); if (di == NULL) + { + if (si->sn_autoload_prefix != NULL) + { + hashitem_T *hi; + + // A variable exported from an autoload script is in the global + // variables, we can find it in the all_vars table. + hi = hash_find(&si->sn_all_vars.dv_hashtab, name); + if (!HASHITEM_EMPTY(hi)) + return HI2SAV(hi)->sav_var_vals_idx; + } return -2; + } // Now find the svar_T index in sn_var_vals. for (idx = 0; idx < si->sn_var_vals.ga_len; ++idx) *** ../vim-8.2.4053/src/version.c 2022-01-10 18:06:58.686381782 +0000 --- src/version.c 2022-01-10 18:31:24.449194027 +0000 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 4054, /**/ -- Ten bugs in the hand is better than one as yet undetected. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///