comparison src/scriptfile.c @ 27150:2d0ea3f9ffe1 v8.2.4104

patch 8.2.4104: Vim9: lower casing the autoload prefix causes problems Commit: https://github.com/vim/vim/commit/bfac409d0b24d212a6d846edb651c49dac03745f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 16 11:12:12 2022 +0000 patch 8.2.4104: Vim9: lower casing the autoload prefix causes problems Problem: Vim9: lower casing the autoload prefix causes problems. Solution: Always store the prefix with case preserved.
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Jan 2022 12:15:04 +0100
parents d7e6b85dd89d
children fa09602eae48
comparison
equal deleted inserted replaced
27149:5ec89814c0bf 27150:2d0ea3f9ffe1
2154 char_u *p = script_name_after_autoload(si); 2154 char_u *p = script_name_after_autoload(si);
2155 char_u *prefix; 2155 char_u *prefix;
2156 2156
2157 if (p == NULL) 2157 if (p == NULL)
2158 return NULL; 2158 return NULL;
2159 #ifdef CASE_INSENSITIVE_FILENAME
2160 prefix = strlow_save(p);
2161 #else
2162 prefix = vim_strsave(p); 2159 prefix = vim_strsave(p);
2163 #endif
2164 if (prefix == NULL) 2160 if (prefix == NULL)
2165 return NULL; 2161 return NULL;
2166 2162
2167 // replace all '/' with '#' and locate ".vim" at the end 2163 // replace all '/' with '#' and locate ".vim" at the end
2168 for (p = prefix; *p != NUL; p += mb_ptr2len(p)) 2164 for (p = prefix; *p != NUL; p += mb_ptr2len(p))