diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 07:39:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 07:39:41 +0000 |
commit | 00c068502d170f9f9b59c4a68aa12e8835859f6c (patch) | |
tree | 2047fc01b8c70326d9b87b47a575e7e5f2141b62 /runtime/ftplugin/registry.vim | |
parent | Adding upstream version 2:9.1.0016. (diff) | |
download | vim-00c068502d170f9f9b59c4a68aa12e8835859f6c.tar.xz vim-00c068502d170f9f9b59c4a68aa12e8835859f6c.zip |
Adding upstream version 2:9.1.0199.upstream/2%9.1.0199
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'runtime/ftplugin/registry.vim')
-rw-r--r-- | runtime/ftplugin/registry.vim | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/runtime/ftplugin/registry.vim b/runtime/ftplugin/registry.vim index 385785a..bb851c5 100644 --- a/runtime/ftplugin/registry.vim +++ b/runtime/ftplugin/registry.vim @@ -2,6 +2,7 @@ " Language: Windows Registry export with regedit (*.reg) " Maintainer: Cade Forester <ahx2323@gmail.com> " Latest Revision: 2014-01-09 +" 2024 Jan 14 by Vim Project (browsefilter) if exists("b:did_ftplugin") finish @@ -12,18 +13,22 @@ let s:cpo_save = &cpo set cpo&vim let b:undo_ftplugin = - \ 'let b:browsefilter = "" | ' . \ 'setlocal ' . \ 'comments< '. \ 'commentstring< ' . - \ 'formatoptions< ' + \ 'formatoptions<' -if has( 'gui_win32' ) +if ( has( 'gui_win32' ) || has( 'gui_gtk' ) ) \ && !exists( 'b:browsefilter' ) let b:browsefilter = - \ 'registry files (*.reg)\t*.reg\n' . - \ 'All files (*.*)\t*.*\n' + \ "registry files (*.reg)\t*.reg\n" + if has("win32") + let b:browsefilter .= "All Files (*.*)\t*\n" + else + let b:browsefilter .= "All Files (*)\t*\n" + endif + let b:undo_ftplugin .= " | unlet! b:browsefilter" endif setlocal comments=:; |