Relax previous commit a bit

This commit is contained in:
Adam Stankiewicz
2020-10-09 23:00:41 +02:00
parent 0d48ba9245
commit 3da600ac30
2 changed files with 2 additions and 2 deletions

View File

@@ -1820,7 +1820,7 @@ if !has_key(s:disabled_packages, 'toml')
endif
if !has_key(s:disabled_packages, 'tmux')
au BufNewFile,BufRead .tmux*.conf setf tmux
au BufNewFile,BufRead {.,}tmux*.conf setf tmux
endif
if !has_key(s:disabled_packages, 'thrift')

View File

@@ -579,7 +579,7 @@ def generate_ftdetect(packages, heuristics)
end
for filename in filenames.sort
if filename.match?(/^\.[^\*\/]+$/)
if filename.match?(/^\.[^\/]+[^\*]$/)
filename = "{.,}" + filename[1..-1]
end
if filename[-1] == "*"