diff options
Diffstat (limited to 'runtime/ftplugin/rrst.vim')
| -rw-r--r-- | runtime/ftplugin/rrst.vim | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/ftplugin/rrst.vim b/runtime/ftplugin/rrst.vim index d9df5e587f..7da2c4b74b 100644 --- a/runtime/ftplugin/rrst.vim +++ b/runtime/ftplugin/rrst.vim @@ -3,6 +3,7 @@ " Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com> " Homepage: https://github.com/jalvesaq/R-Vim-runtime " Last Change: Mon Feb 27, 2023 07:16PM +" 2024 Jan 14 by Vim Project (browsefilter) " Original work by Alex Zvoleff " Only do this when not yet done for this buffer @@ -38,8 +39,12 @@ if !exists("g:rrst_dynamic_comments") || (exists("g:rrst_dynamic_comments") && g endif if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") - let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst *.qmd)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst;*.qmd\n" . - \ "All Files (*.*)\t*.*\n" + let b:browsefilter = "R Source Files (*.R *.Rnw *.Rd *.Rmd *.Rrst *.qmd)\t*.R;*.Rnw;*.Rd;*.Rmd;*.Rrst;*.qmd\n" + if has("win32") + let b:browsefilter .= "All Files (*.*)\t*\n" + else + let b:browsefilter .= "All Files (*)\t*\n" + endif endif if exists('b:undo_ftplugin') |