summaryrefslogtreecommitdiff
path: root/src/gui_w48.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-10-11 10:06:20 +0000
committerBram Moolenaar <Bram@vim.org>2004-10-11 10:06:20 +0000
commit7171abea1ad8d33cce89a9664873417187139a53 (patch)
tree491426309f8e38304d96b55b7ac5ab6bdaefcc6b /src/gui_w48.c
parent349b2f643a5e840facf42942d37d47c5b37c1292 (diff)
downloadvim-git-7171abea1ad8d33cce89a9664873417187139a53.tar.gz
updated for version 7.0018
Diffstat (limited to 'src/gui_w48.c')
-rw-r--r--src/gui_w48.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui_w48.c b/src/gui_w48.c
index eeaf651c7..4f0bab700 100644
--- a/src/gui_w48.c
+++ b/src/gui_w48.c
@@ -2980,6 +2980,18 @@ convert_filter(char_u *s)
}
/*
+ * Select a directory.
+ */
+ char_u *
+gui_mch_browsedir(char_u *title, char_u *initdir)
+{
+ /* We fake this: Use a filter that doesn't select anything and a default
+ * file name that won't be used. */
+ return gui_mch_browse(0, title, (char_u *)_("Not Used"), NULL,
+ initdir, (char_u *)_("Directory\t*.nothing\n"));
+}
+
+/*
* Pop open a file browser and return the file selected, in allocated memory,
* or NULL if Cancel is hit.
* saving - TRUE if the file will be saved to, FALSE if it will be opened.