mirror of
https://github.com/neovim/neovim.git
synced 2025-12-02 23:13:01 +00:00
vim-patch:8.2.5110: icon filetype not recognized from the first line (#18987)
Problem: Icon filetype not recognized from the first line.
Solution: Add a check for the first line. (Doug Kearns)
bf6614643f
This commit is contained in:
@@ -202,6 +202,10 @@ if s:line1 =~# "^#!"
|
||||
elseif s:name =~# 'gforth\>'
|
||||
set ft=forth
|
||||
|
||||
" Icon
|
||||
elseif s:name =~# 'icon\>'
|
||||
set ft=icon
|
||||
|
||||
endif
|
||||
unlet s:name
|
||||
|
||||
|
||||
Reference in New Issue
Block a user