diff options
Diffstat (limited to 'runtime/ftplugin/sed.vim')
-rw-r--r-- | runtime/ftplugin/sed.vim | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/runtime/ftplugin/sed.vim b/runtime/ftplugin/sed.vim index 0073872..acd0890 100644 --- a/runtime/ftplugin/sed.vim +++ b/runtime/ftplugin/sed.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: sed " Maintainer: Doug Kearns <dougkearns@gmail.com> -" Last Change: 2020 Apr 1 +" Last Change: 2024 Jan 14 if exists("b:did_ftplugin") finish @@ -18,8 +18,12 @@ setlocal formatoptions-=t formatoptions+=croql let b:undo_ftplugin = "setl com< cms< fo<" if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") - let b:browsefilter = "sed Script Files (*.sed)\t*.sed\n" .. - \ "All Files (*.*)\t*.*\n" + let b:browsefilter = "sed Script Files (*.sed)\t*.sed\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 |