diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-07 18:51:27 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-07 18:51:27 +0200 |
commit | 611548105394fdb76827cd431230c9fbfed39929 (patch) | |
tree | 410a46043c93be4aaeff1e518cb050c86e4407ff | |
parent | 0ff5dedf0f69e56320199db7a2aad46be2a1f9b7 (diff) | |
download | vim-git-611548105394fdb76827cd431230c9fbfed39929.tar.gz |
patch 8.2.0713: the pam_environment file is not recognizedv8.2.0713
Problem: The pam_environment file is not recognized.
Solution: Add a filetype pattern for pamenv. (closes #6051)
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 9fe4ecfe5..75bf5ac12 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1133,6 +1133,9 @@ au BufNewFile,BufRead pf.conf setf pf " Pam conf au BufNewFile,BufRead */etc/pam.conf setf pamconf +" Pam environment +au BufNewFile,BufRead .pam_environment setf pamenv + " PApp au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index e71ccd44e..117b52072 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -322,6 +322,7 @@ let s:filename_checks = { \ 'openroad': ['file.or'], \ 'ora': ['file.ora'], \ 'pamconf': ['/etc/pam.conf'], + \ 'pamenv': ['/home/user/.pam_environment'], \ 'papp': ['file.papp', 'file.pxml', 'file.pxsl'], \ 'pascal': ['file.pas', 'file.dpr'], \ 'passwd': ['any/etc/passwd', 'any/etc/passwd-', 'any/etc/passwd.edit', 'any/etc/shadow', 'any/etc/shadow-', 'any/etc/shadow.edit', 'any/var/backups/passwd.bak', 'any/var/backups/shadow.bak'], diff --git a/src/version.c b/src/version.c index f9ce53b40..2d5931ac5 100644 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 713, +/**/ 712, /**/ 711, |