Mercurial > vim
comparison src/testdir/test_vim9_import.vim @ 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 | 648a5f658990 |
children | eb0a1108f885 |
comparison
equal
deleted
inserted
replaced
27149:5ec89814c0bf | 27150:2d0ea3f9ffe1 |
---|---|
1483 import autoload 'CaseSensitive.vim' | 1483 import autoload 'CaseSensitive.vim' |
1484 assert_equal('done', CaseSensitive.CaseSensitive()) | 1484 assert_equal('done', CaseSensitive.CaseSensitive()) |
1485 END | 1485 END |
1486 CheckScriptSuccess(lines) | 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 delete('Xdir', 'rf') | 1497 delete('Xdir', 'rf') |
1489 &rtp = save_rtp | 1498 &rtp = save_rtp |
1490 enddef | 1499 enddef |
1491 | 1500 |
1492 " This was causing a crash because suppress_errthrow wasn't reset. | 1501 " This was causing a crash because suppress_errthrow wasn't reset. |