Mirror of the Vim source from https://github.com/vim/vim
Révision | 2d0ea3f9ffe1935644e45838b0a23bfc4940a7d5 (tree) |
---|---|
l'heure | 2022-01-16 20:15:04 |
Auteur | Bram Moolenaar <Bram@vim....> |
Commiter | Bram Moolenaar |
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
@@ -2156,11 +2156,7 @@ | ||
2156 | 2156 | |
2157 | 2157 | if (p == NULL) |
2158 | 2158 | return NULL; |
2159 | -#ifdef CASE_INSENSITIVE_FILENAME | |
2160 | - prefix = strlow_save(p); | |
2161 | -#else | |
2162 | 2159 | prefix = vim_strsave(p); |
2163 | -#endif | |
2164 | 2160 | if (prefix == NULL) |
2165 | 2161 | return NULL; |
2166 | 2162 |
@@ -1485,6 +1485,15 @@ | ||
1485 | 1485 | END |
1486 | 1486 | CheckScriptSuccess(lines) |
1487 | 1487 | |
1488 | + if !has('fname_case') | |
1489 | + lines =<< trim END | |
1490 | + vim9script | |
1491 | + import autoload 'CaseSensitive.vim' | |
1492 | + import autoload 'casesensitive.vim' | |
1493 | + END | |
1494 | + CheckScriptFailure(lines, 'E1262:') | |
1495 | + endif | |
1496 | + | |
1488 | 1497 | delete('Xdir', 'rf') |
1489 | 1498 | &rtp = save_rtp |
1490 | 1499 | enddef |
@@ -751,6 +751,8 @@ | ||
751 | 751 | static int included_patches[] = |
752 | 752 | { /* Add new patch number below this line */ |
753 | 753 | /**/ |
754 | + 4104, | |
755 | +/**/ | |
754 | 756 | 4103, |
755 | 757 | /**/ |
756 | 758 | 4102, |