comparison src/vim9script.c @ 28261:20f6b0cdf38c v8.2.4656

patch 8.2.4656: Vim9: can't use item from "import autoload" with autoload dir Commit: https://github.com/vim/vim/commit/ccbfd4883f0385a1d84cc87785ddcc86185b4ad9 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 31 16:18:23 2022 +0100 patch 8.2.4656: Vim9: can't use item from "import autoload" with autoload dir Problem: Vim9: can't use items from "import autoload" with autoload directory name. Solution: Let sn_autoload_prefix overrule sn_import_autoload. (closes #10054)
author Bram Moolenaar <Bram@vim.org>
date Thu, 31 Mar 2022 17:30:03 +0200
parents 6d2b5c2178e2
children b418e073b42f
comparison
equal deleted inserted replaced
28260:21f8175f4d9f 28261:20f6b0cdf38c
412 return FAIL; 412 return FAIL;
413 } 413 }
414 414
415 si = SCRIPT_ITEM(*sid); 415 si = SCRIPT_ITEM(*sid);
416 si->sn_import_autoload = TRUE; 416 si->sn_import_autoload = TRUE;
417
418 if (si->sn_autoload_prefix == NULL)
419 si->sn_autoload_prefix = get_autoload_prefix(si);
417 420
418 // with testing override: load autoload script right away 421 // with testing override: load autoload script right away
419 if (!override_autoload || si->sn_state != SN_STATE_NOT_LOADED) 422 if (!override_autoload || si->sn_state != SN_STATE_NOT_LOADED)
420 return OK; 423 return OK;
421 } 424 }