Skip to content

invalid back reference on MSYS2 #538

@Konfekt

Description

@Konfekt

Hello,

the line

let absolute_path = glob(fnamemodify(fname, ":p"))

leads to an error message

line 4: /c/\12 line 5: E65: Illegal back reference 

as shown by

let fname = '/c/\12' let fname = fnamemodify(fname, ":p") let fname = glob(fname)

if v:oldfiles contains file paths with back and forward slashes (as happens when using Vim in MSYS2 and Windows).

Maybe the slashes should be all converted to \

if exists('+shellslash') && !&shellslash

and to / otherwise?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions