Mercurial > vim
comparison src/scriptfile.c @ 20921:187c3fb42c8f v8.2.1012
patch 8.2.1012: Vim9: cannot declare single character script variables
Commit: https://github.com/vim/vim/commit/3b74b6b4bb9a022f8c6f6e544360d628e10df1ab
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 19 19:01:43 2020 +0200
patch 8.2.1012: Vim9: cannot declare single character script variables
Problem: Vim9: cannot declare single character script variables.
Solution: Don't see "b:", "s:", etc. as namespace. Fix item size of
sn_var_vals.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 19 Jun 2020 19:15:03 +0200 |
parents | 9f921ba86d05 |
children | 0653b9b72091 |
comparison
equal
deleted
inserted
replaced
20920:5469fca04251 | 20921:187c3fb42c8f |
---|---|
1341 si->sn_name = NULL; | 1341 si->sn_name = NULL; |
1342 si->sn_version = 1; | 1342 si->sn_version = 1; |
1343 | 1343 |
1344 // Allocate the local script variables to use for this script. | 1344 // Allocate the local script variables to use for this script. |
1345 new_script_vars(script_items.ga_len); | 1345 new_script_vars(script_items.ga_len); |
1346 ga_init2(&si->sn_var_vals, sizeof(typval_T), 10); | 1346 ga_init2(&si->sn_var_vals, sizeof(svar_T), 10); |
1347 ga_init2(&si->sn_imports, sizeof(imported_T), 10); | 1347 ga_init2(&si->sn_imports, sizeof(imported_T), 10); |
1348 ga_init2(&si->sn_type_list, sizeof(type_T), 10); | 1348 ga_init2(&si->sn_type_list, sizeof(type_T), 10); |
1349 # ifdef FEAT_PROFILE | 1349 # ifdef FEAT_PROFILE |
1350 si->sn_prof_on = FALSE; | 1350 si->sn_prof_on = FALSE; |
1351 # endif | 1351 # endif |