From 4961c0839dc55ffbcc2bd0e699b81e884d41d634 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 15 Oct 2021 17:51:28 +1100 Subject: [PATCH] Add GTK support to browse dialog filtering --- ftplugin/clojure.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftplugin/clojure.vim b/ftplugin/clojure.vim index b698a09..20db5be 100644 --- a/ftplugin/clojure.vim +++ b/ftplugin/clojure.vim @@ -64,8 +64,8 @@ if exists('loaded_matchit') let b:undo_ftplugin .= ' | unlet! b:match_words b:match_skip' endif -" Win32 can filter files in the browse dialog -if has("gui_win32") && !exists("b:browsefilter") +" Filter files in the browse dialog +if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") let b:browsefilter = "Clojure Source Files (*.clj)\t*.clj\n" . \ "ClojureScript Source Files (*.cljs)\t*.cljs\n" . \ "Java Source Files (*.java)\t*.java\n" .