4 Commits

Author SHA1 Message Date
Christian Clason 7ed6966023 vim-patch:93197fde0f1d
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 vim/vim#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: vim/vim#12759

https://github.com/vim/vim/commit/93197fde0f1db09b1e495cf3eb14a8f42c318b80

Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2024-01-15 11:40:44 +01:00
Christian Clason 662681694b vim-patch:0d878b95d8f9 (#19197)
Update runtime files
https://github.com/vim/vim/commit/0d878b95d8f9ece2fdba81050f5caba224540f9c
2022-07-02 11:06:03 +02:00
Christian Clason 79b92da0d2 vim-patch:partial:f10911e5db16 (#17248)
Update runtime files
https://github.com/vim/vim/commit/f10911e5db16f1fe6ab519c5d091ad0c1df0d063
2022-01-31 15:27:01 +01:00
Jan Edmund Lazo ac83c6eba6 vim-patch:e0e391755432
Update runtime files.
https://github.com/vim/vim/commit/e0e3917554327f2524066f89fbbef9c83c1535da
2021-05-01 23:19:58 -04:00