]> granicus.if.org Git - vim/commitdiff
patch 8.2.1060: not all elinks files are recognized v8.2.1060
authorBram Moolenaar <Bram@vim.org>
Fri, 26 Jun 2020 18:23:45 +0000 (20:23 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 26 Jun 2020 18:23:45 +0000 (20:23 +0200)
Problem:    Not all elinks files are recognized.
Solution:   Just check for "elinks.conf". (Guido Cella, closes #6337)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index a6c8956542fd4c214bf3b2e242486509031b1af1..3778fe5ff851c80bdf861d3fb558b95a356ced82 100644 (file)
@@ -542,7 +542,7 @@ au BufNewFile,BufRead *.ecd                 setf ecd
 au BufNewFile,BufRead *.e,*.E                  call dist#ft#FTe()
 
 " Elinks configuration
-au BufNewFile,BufRead */etc/elinks.conf,*/.elinks/elinks.conf  setf elinks
+au BufNewFile,BufRead elinks.conf              setf elinks
 
 " ERicsson LANGuage; Yaws is erlang too
 au BufNewFile,BufRead *.erl,*.hrl,*.yaws       setf erlang
index 38339aefec1c3da2b45a40937a9f2bf308a732f4..8ec8355c2461c244c5fc1f6906c8a63252ff0223 100644 (file)
@@ -150,7 +150,7 @@ let s:filename_checks = {
     \ 'dylanlid': ['file.lid'],
     \ 'ecd': ['file.ecd'],
     \ 'edif': ['file.edf', 'file.edif', 'file.edo'],
-    \ 'elinks': ['/etc/elinks.conf', '/.elinks/elinks.conf'],
+    \ 'elinks': ['elinks.conf'],
     \ 'elm': ['file.elm'],
     \ 'elmfilt': ['filter-rules'],
     \ 'erlang': ['file.erl', 'file.hrl', 'file.yaws'],
index aff4583e948cc1a74a7b569f8572e08bbcde8c41..ca08dff59b999184df53a1c06008ae1d6d912e68 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1060,
 /**/
     1059,
 /**/