]> granicus.if.org Git - vim/commitdiff
patch 8.2.3501: tmux filetype dection is incomplete v8.2.3501
authorEric Pruitt <eric.pruitt@gmail.com>
Tue, 12 Oct 2021 12:58:23 +0000 (13:58 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 12 Oct 2021 12:58:23 +0000 (13:58 +0100)
Problem:    tmux filetype dection is incomplete
Solution:   Also use tmux for files having text after .conf. (Eric Pruitt,
            closes #8971)

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

index 9b18b1b73a2f155f07d0461ebfccf81a585a388b..247e873d0f0e916bafb5ad9a1874cb94ec4bf81f 100644 (file)
@@ -2305,6 +2305,9 @@ au BufNewFile,BufRead .tcshrc*    call dist#ft#SetFileTypeShell("tcsh")
 " csh scripts ending in a star
 au BufNewFile,BufRead .login*,.cshrc*  call dist#ft#CSH()
 
+" tmux configuration with arbitrary extension
+au BufNewFile,BufRead {.,}tmux*.conf*          setf tmux
+
 " VHDL
 au BufNewFile,BufRead *.vhdl_[0-9]*            call s:StarSetf('vhdl')
 
index 0a55ca650d2ea486a5b163858cb9f0395239c67b..557cf5e157d45848f0dd0adda373b75567ad510e 100644 (file)
@@ -504,7 +504,7 @@ let s:filename_checks = {
     \ 'tidy': ['.tidyrc', 'tidyrc', 'tidy.conf'],
     \ 'tilde': ['file.t.html'],
     \ 'tli': ['file.tli'],
-    \ 'tmux': ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 'tmux-file.conf', 'tmux.conf'],
+    \ 'tmux': ['tmuxfile.conf', '.tmuxfile.conf', '.tmux-file.conf', '.tmux.conf', 'tmux-file.conf', 'tmux.conf', 'tmux.conf.local'],
     \ 'toml': ['file.toml'],
     \ 'tpp': ['file.tpp'],
     \ 'treetop': ['file.treetop'],
index e09abfa22d5500f7c3020c4ef99eb509e9ca1cb8..1f292bbde68cb6bdfe742052227d3cbe2a358d43 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3501,
 /**/
     3500,
 /**/