You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to open a file that is inside a directory named "[a-1]", an error occurs: E944: Reverse range in character class.
Steps to reproduce
cd ~
mkdir '[a-1]'
vim '[a-1]/blabla.txt'
An error occurs:
Error detected while processing function gutentags#setup_gutentags[38]..gutentags#get_project_root[4]..gutentags#default_get_project_root:
line 15:
E944: Reverse range in character class
The problem is likely caused by calls to globpath() that fail to escape file wildcards (see :h wildcards) prior to globbing. Example of a problematic line:
Describe the bug
When trying to open a file that is inside a directory named "[a-1]", an error occurs:
E944: Reverse range in character class
.Steps to reproduce
cd ~
mkdir '[a-1]'
vim '[a-1]/blabla.txt'
An error occurs:
Share your setup
Post the logs
Irrelevant because no logs are produced.
Additional context
The problem is likely caused by calls to
globpath()
that fail to escape file wildcards (see:h wildcards
) prior to globbing. Example of a problematic line:vim-gutentags/autoload/gutentags.vim
Line 209 in 50705e8
Perhaps the solution is to use
fnameescape()
to escape wildcard characters, but I don't know enough about these things to comment further.The text was updated successfully, but these errors were encountered: