# HG changeset patch # User Bram Moolenaar # Date 1341920474 -7200 # Node ID 46896c29edd74418c665af7c1ed685aa52a41e1a # Parent c1a41a78726d335f79a68538b40c4f0f9e1f65b1 updated for version 7.3.593 Problem: No easy way to decide if b:browsefilter will work. Solution: Add the browsefilter feature. diff --git a/src/eval.c b/src/eval.c --- a/src/eval.c +++ b/src/eval.c @@ -12044,6 +12044,11 @@ f_has(argvars, rettv) "all_builtin_terms", # endif #endif +#if defined(FEAT_BROWSE) && (defined(USE_FILE_CHOOSER) \ + || defined(FEAT_GUI_W32) \ + || defined(FEAT_GUI_MOTIF)) + "browsefilter", +#endif #ifdef FEAT_BYTEOFF "byte_offset", #endif diff --git a/src/gui_gtk.c b/src/gui_gtk.c --- a/src/gui_gtk.c +++ b/src/gui_gtk.c @@ -779,9 +779,6 @@ gui_mch_destroy_scrollbar(scrollbar_T *s /* * Implementation of the file selector related stuff */ -#if GTK_CHECK_VERSION(2,4,0) -# define USE_FILE_CHOOSER -#endif #ifndef USE_FILE_CHOOSER static void diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 593, +/**/ 592, /**/ 591, diff --git a/src/vim.h b/src/vim.h --- a/src/vim.h +++ b/src/vim.h @@ -2125,6 +2125,12 @@ typedef int VimClipboard; /* This is req # endif #endif +#if defined(FEAT_BROWSE) && defined(GTK_CHECK_VERSION) +# if GTK_CHECK_VERSION(2,4,0) +# define USE_FILE_CHOOSER +# endif +#endif + #ifndef FEAT_NETBEANS_INTG # undef NBDEBUG #endif