diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-06-16 13:27:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-16 13:27:18 +0100 |
commit | bf6614643f656d38d220c04befdcb1d35774853a (patch) | |
tree | 248bb76d0a6f8ee1089f9869c4be08f197b13920 /runtime | |
parent | 7a1d32809bb5c1527314000983e75125d79192e0 (diff) | |
download | vim-git-bf6614643f656d38d220c04befdcb1d35774853a.tar.gz |
patch 8.2.5110: icon filetype not recognized from the first linev8.2.5110
Problem: Icon filetype not recognized from the first line.
Solution: Add a check for the first line. (Doug Kearns)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/autoload/dist/script.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/autoload/dist/script.vim b/runtime/autoload/dist/script.vim index b926f3156..86070a0af 100644 --- a/runtime/autoload/dist/script.vim +++ b/runtime/autoload/dist/script.vim @@ -189,6 +189,10 @@ def DetectFromHashBang(firstline: string) elseif name =~ 'gforth\>' set ft=forth + # Icon + elseif name =~ 'icon\>' + set ft=icon + endif enddef |