summaryrefslogtreecommitdiffstats
path: root/runtime/ftplugin/ruby.vim
AgeCommit message (Collapse)Author
2024-01-14runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"Doug Kearns
Problem: The "*.*" browsefilter pattern only matches all files on Windows (Daryl Lee) Solution: Use "*" to filter on all platforms but keep "*.*" as the label text on Windows. (Fixes #12685, Doug Kearns) The *.* browsefilter pattern used to match "All Files" on Windows is a legacy of the DOS 8.3 filename wildcard matching algorithm. For reasons of backward compatibility this still works on Windows to match all files, even those without an extension. However, this pattern only matches filenames containing a dot on other platforms. This often makes files without an extension difficult to access from the file dialog, e.g., "Makefile" On Windows it is still standard practice to use "*.*" for the filter label so ftplugins should use "All Files (*.*)" on Windows and "All Files (*)" on other platforms. This matches Vim's default browsefilter values. This commit also normalises the browsefilter conditional test to check for the Win32 and GTK GUI features and an unset b:browsefilter. closes: #12759 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-01runtime(ruby): Update ftplugin and omni-complete (#13805)dkearns
Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-06runtime: don't execute external commands when loading ftpluginsChristian Brabandt
This is a followup to 816fbcc262687b81fc46f82f7bbeb1453addfe0c (patch 9.0.1833: [security] runtime file fixes) It basically disables that external commands are run on loading of the filetype plugin, **unless** the user has set the `g:plugin_exec = 1` global variable in their configuration or for a specific filetype the variable g:<filetype>_exec=1. There are a few more plugins, that may execute system commands like debchangelog, gitcommit, sh, racket, zsh, ps1 but those do at least do not run those commands by default during loading of the filetype plugin (there the command is mostly run as convenience for auto-completion or to provide documentation lookup). closes: #13034 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Tim Pope <vim@tpope.org>
2023-09-05runtime(ftplugin): allow to exec if curdir is in PATHAnton Sharonov
In case the current directory is present as valid $PATH entry, it is OK to call the program from it, even if vim curdir is in that same directory. (Without that patch, for instance, you will not be able to open .zip files while your current directory is /bin) closes: #13027 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-04runtime: Fix problem of checking wrong cwd for ruby ftplugin (#13026)Anton Sharonov (ant0sha)
Co-authored-by: Anton Sharonov <anton.sharonov@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-01runtime(ruby): Update syntax, indent and ftplugin filesDoug Kearns
While making changes to the ruby ftplugin, slightly change the exepath() conditional from patch 9.0.1833 and move it after the :cd invocation. closes: 12981 closes: 12994 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Tim Pope <code@tpope.net> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2023-08-31patch 9.0.1833: [security] runtime file fixesv9.0.1833Christian Brabandt
Problem: runtime files may execute code in current dir Solution: only execute, if not run from current directory The perl, zig and ruby filetype plugins and the zip and gzip autoload plugins may try to load malicious executable files from the current working directory. This is especially a problem on windows, where the current directory is implicitly in your $PATH and windows may even run a file with the extension `.bat` because of $PATHEXT. So make sure that we are not trying to execute a file from the current directory. If this would be the case, error out (for the zip and gzip) plugins or silently do not run those commands (for the ftplugins). This assumes, that only the current working directory is bad. For all other directories, it is assumed that those directories were intentionally set to the $PATH by the user. Signed-off-by: Christian Brabandt <cb@256bit.org>
2022-03-30Update runtime filesBram Moolenaar
2021-06-27Update runtime filesBram Moolenaar
2019-12-09Update a few runtime files.Bram Moolenaar
2019-01-17Update runtime files.Bram Moolenaar
2016-08-30Updated runtime files. Remove version checks for Vim older than 6.0.Bram Moolenaar
2013-06-12Update runtime files.Bram Moolenaar
2010-05-28Runtime file updates.Bram Moolenaar
2010-01-06Update runtime files.Bram Moolenaar
2008-06-24updated for version 7.2aBram Moolenaar
2007-05-10updated for version 7.1bBram Moolenaar
2007-05-05updated for version 7.1aBram Moolenaar
2006-05-05updated for version 7.0g04Bram Moolenaar
2006-04-15updated for version 7.0d05Bram Moolenaar
2006-04-14updated for version 7.0d04v7.0d04Bram Moolenaar
2005-11-23updated for version 7.0158v7.0158Bram Moolenaar
2005-10-10updated for version 7.0155Bram Moolenaar
2005-09-16updated for version 7.0148v7.0148Bram Moolenaar
2004-06-13updated for version 7.0001v7.0001Bram Moolenaar