> On Jan 14, 2022, at 6:20 AM, Bram Moolenaar <
Br...@moolenaar.net> wrote:
>
>
> Christian J. Robinson wrote:
>
>> With the "import autoload 'CaseRegression.vim'" you can use "echo
>> CaseRegression#CaseRegression()" on Linux, but on Windows it has to be
>> "echo caseregression#CaseRegression()". This inconsistency is the problem
>> I'm facing.
>
> Is that at the script level or in a :def function? Or both?
I'm using the # form in mappings because the .
form is unavailable at that point.
> You can try changing get_autoload_prefix() to always use vim_strsave()
> instead of strlow_save() on windows. But I wonder what else will fail
> then.
Right now I'm just working around it on Windows by creating a reference to the proper case.
if !has('fname_case')
g:CaseRegression#CaseRegression = CaseRegression CaseRegression
endif