0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

updated for version 7.0018

This commit is contained in:
Bram Moolenaar
2004-10-11 10:06:20 +00:00
parent 349b2f643a
commit 7171abea1a
12 changed files with 141 additions and 56 deletions

View File

@@ -2979,6 +2979,18 @@ convert_filter(char_u *s)
return res;
}
/*
* 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.