diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-09 18:28:23 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-09 18:28:28 +0200 |
commit | 49840b1893a9ad442c5b7cf65203af47c032e156 (patch) | |
tree | fa1440c9ed47fb18067c0601d44626f800187b69 | |
parent | 2dc954d6fa15c897da59ff14aa4d5991a3329eb5 (diff) | |
download | vim-polyglot-49840b1893a9ad442c5b7cf65203af47c032e156.tar.gz vim-polyglot-49840b1893a9ad442c5b7cf65203af47c032e156.zip |
Show full path in b:sleuth_culprit
-rw-r--r-- | ftdetect/polyglot.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index ee74a293..273cf26b 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -1775,7 +1775,7 @@ endif " end filetypes au BufNewFile,BufRead,StdinReadPost * - \ if !did_filetype() && expand("<amatch>") !~ g:ft_ignore_pat + \ if !did_filetype() && expand("<afile>") !~ g:ft_ignore_pat \ | call polyglot#Heuristics() | endif @@ -1895,7 +1895,7 @@ if !has_key(s:disabled_packages, 'autoindent') return endif - let b:sleuth_culprit = expand("<amatch>") + let b:sleuth_culprit = expand("<afile>:p") if s:guess(getline(1, 32)) return endif |