• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Révision2d0ea3f9ffe1935644e45838b0a23bfc4940a7d5 (tree)
l'heure2022-01-16 20:15:04
AuteurBram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Message de Log

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.

Change Summary

Modification

diff -r 5ec89814c0bf -r 2d0ea3f9ffe1 src/scriptfile.c
--- a/src/scriptfile.c Sat Jan 15 22:45:03 2022 +0100
+++ b/src/scriptfile.c Sun Jan 16 12:15:04 2022 +0100
@@ -2156,11 +2156,7 @@
21562156
21572157 if (p == NULL)
21582158 return NULL;
2159-#ifdef CASE_INSENSITIVE_FILENAME
2160- prefix = strlow_save(p);
2161-#else
21622159 prefix = vim_strsave(p);
2163-#endif
21642160 if (prefix == NULL)
21652161 return NULL;
21662162
diff -r 5ec89814c0bf -r 2d0ea3f9ffe1 src/testdir/test_vim9_import.vim
--- a/src/testdir/test_vim9_import.vim Sat Jan 15 22:45:03 2022 +0100
+++ b/src/testdir/test_vim9_import.vim Sun Jan 16 12:15:04 2022 +0100
@@ -1485,6 +1485,15 @@
14851485 END
14861486 CheckScriptSuccess(lines)
14871487
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+
14881497 delete('Xdir', 'rf')
14891498 &rtp = save_rtp
14901499 enddef
diff -r 5ec89814c0bf -r 2d0ea3f9ffe1 src/version.c
--- a/src/version.c Sat Jan 15 22:45:03 2022 +0100
+++ b/src/version.c Sun Jan 16 12:15:04 2022 +0100
@@ -751,6 +751,8 @@
751751 static int included_patches[] =
752752 { /* Add new patch number below this line */
753753 /**/
754+ 4104,
755+/**/
754756 4103,
755757 /**/
756758 4102,
Afficher sur ancien navigateur de dépôt.