Patch 9.0.1106
Problem:    Not all postfix files are recognized.
Solution:   Recognize main.cf.proto files. (closes #11732)
Files:      runtime/filetype.vim, src/testdir/test_filetype.vim


*** ../vim-9.0.1105/runtime/filetype.vim        2022-12-26 15:35:11.357868057 
+0000
--- runtime/filetype.vim        2022-12-27 20:07:56.529256044 +0000
***************
*** 1498,1504 ****
  au BufNewFile,BufRead *.po,*.pot              setf po
  
  " Postfix main config
! au BufNewFile,BufRead main.cf                 setf pfmain
  
  " PostScript (+ font files, encapsulated PostScript, Adobe Illustrator)
  au BufNewFile,BufRead *.ps,*.pfa,*.afm,*.eps,*.epsf,*.epsi,*.ai         setf 
postscr
--- 1498,1504 ----
  au BufNewFile,BufRead *.po,*.pot              setf po
  
  " Postfix main config
! au BufNewFile,BufRead main.cf,main.cf.proto   setf pfmain
  
  " PostScript (+ font files, encapsulated PostScript, Adobe Illustrator)
  au BufNewFile,BufRead *.ps,*.pfa,*.afm,*.eps,*.epsf,*.epsi,*.ai         setf 
postscr
*** ../vim-9.0.1105/src/testdir/test_filetype.vim       2022-12-26 
15:35:11.357868057 +0000
--- src/testdir/test_filetype.vim       2022-12-27 20:07:56.529256044 +0000
***************
*** 420,426 ****
      \ 'pdf': ['file.pdf'],
      \ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', 
'.gitolite.rc', 'example.gitolite.rc', '.latexmkrc', 'latexmkrc'],
      \ 'pf': ['pf.conf'],
!     \ 'pfmain': ['main.cf'],
      \ 'php': ['file.php', 'file.php9', 'file.phtml', 'file.ctp', 'file.phpt', 
'file.theme'],
      \ 'pike': ['file.pike', 'file.pmod'],
      \ 'pilrc': ['file.rcp'],
--- 420,426 ----
      \ 'pdf': ['file.pdf'],
      \ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', 
'.gitolite.rc', 'example.gitolite.rc', '.latexmkrc', 'latexmkrc'],
      \ 'pf': ['pf.conf'],
!     \ 'pfmain': ['main.cf', 'main.cf.proto'],
      \ 'php': ['file.php', 'file.php9', 'file.phtml', 'file.ctp', 'file.phpt', 
'file.theme'],
      \ 'pike': ['file.pike', 'file.pmod'],
      \ 'pilrc': ['file.rcp'],
*** ../vim-9.0.1105/src/version.c       2022-12-27 19:54:48.118194735 +0000
--- src/version.c       2022-12-27 20:09:55.685271817 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1106,
  /**/

-- 
An indication you must be a manager:
You believe you never have any problems in your life, just
"issues" and "improvement opportunities".

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20221227201824.AD9761C0AA3%40moolenaar.net.

Raspunde prin e-mail lui