1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-16 06:47:52 +01:00
Commit graph

10 commits

Author SHA1 Message Date
Doug Kearns
93197fde0f
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
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 , 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: 

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-14 21:02:54 +01:00
Bram Moolenaar
e80086446c Update runtime files 2022-08-19 17:15:35 +01:00
Bram Moolenaar
09c6f265b2 Update runtime files. 2019-11-17 15:55:14 +01:00
Bram Moolenaar
60cce2fb73 Update runtime files. 2015-10-13 23:21:27 +02:00
Bram Moolenaar
5a5f45917d Updated runtime files. 2015-04-13 12:43:06 +02:00
Bram Moolenaar
83caecf314 Updated runtime files. 2015-01-14 19:42:21 +01:00
Bram Moolenaar
75b8156a44 Updated runtime files. 2014-04-06 14:09:13 +02:00
Bram Moolenaar
a687837516 Updated runtime files. 2014-03-22 21:02:50 +01:00
Bram Moolenaar
d5d015d457 Update runtime files. 2013-11-03 21:14:31 +01:00
Bram Moolenaar
baca7f705b Update runtime files. Add support for J. 2013-09-22 14:42:24 +02:00