summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-10 22:07:52 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-10 22:07:52 +0200
commitf1f0ff9557353c9a452aac8540411a88cf2da47c (patch)
tree2fcf31c5a43e97cfc97de171bbc1361ca1da403f
parent362b44bd4aa87a2aef0f8fd5a28d68dd09a7d909 (diff)
downloadvim-git-f1f0ff9557353c9a452aac8540411a88cf2da47c.tar.gz
patch 8.2.0954: not all desktop files are recognizedv8.2.0954
Problem: Not all desktop files are recognized. Solution: Add the *.directory pattern. (Eisuke Kawashima, closes #3317)
-rw-r--r--runtime/filetype.vim2
-rw-r--r--src/testdir/test_filetype.vim2
-rw-r--r--src/version.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 12ccd45c0..c585515b0 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -462,7 +462,7 @@ au BufNewFile,BufRead *.desc setf desc
au BufNewFile,BufRead *.d call dist#ft#DtraceCheck()
" Desktop files
-au BufNewFile,BufRead *.desktop,.directory setf desktop
+au BufNewFile,BufRead *.desktop,*.directory setf desktop
" Dict config
au BufNewFile,BufRead dict.conf,.dictrc setf dictconf
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 244de242c..dca25125b 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -131,7 +131,7 @@ let s:filename_checks = {
\ 'def': ['file.def'],
\ 'denyhosts': ['denyhosts.conf'],
\ 'desc': ['file.desc'],
- \ 'desktop': ['file.desktop', '.directory'],
+ \ 'desktop': ['file.desktop', '.directory', 'file.directory'],
\ 'dictconf': ['dict.conf', '.dictrc'],
\ 'dictdconf': ['dictd.conf'],
\ 'diff': ['file.diff', 'file.rej'],
diff --git a/src/version.c b/src/version.c
index b30e5570c..63177cff4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 954,
+/**/
953,
/**/
952,