If buftype == terminal / prompt / popup there's no need to run sleuth on them. Maybe can add check in autocmd for buftype?
Background:
I often use terminals in vim, and sometimes, if terminal buffer name contains special characters (such as '[', ']', '=') I get error message:
Error detected while processing function BufFilePost Autocommands for "*"..function <SNR>60_Init[7]..<SNR>60_Detect:
E944: Reverse range in character class
If
buftype
==terminal
/prompt
/popup
there's no need to run sleuth on them. Maybe can add check inautocmd
forbuftype
?Background: I often use terminals in vim, and sometimes, if terminal buffer name contains special characters (such as
'['
,']'
,'='
) I get error message:vim-sleuth version: commit
b14a41a07
Vim version: 8.2.3517 GTK3 GUI OS: Manjaro Gnome