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

updated for version 7.1-126

This commit is contained in:
Bram Moolenaar
2007-09-30 12:02:55 +00:00
parent 78ab331e0d
commit d089d9b33a
9 changed files with 81 additions and 36 deletions

View File

@@ -1272,7 +1272,6 @@ gui_mch_browse(int saving,
GtkWidget *fc;
#endif
char_u dirbuf[MAXPATHL];
char_u *p;
# ifdef HAVE_GTK2
title = CONVERT_TO_UTF8(title);
@@ -1363,11 +1362,7 @@ gui_mch_browse(int saving,
return NULL;
/* shorten the file name if possible */
mch_dirname(dirbuf, MAXPATHL);
p = shorten_fname(gui.browse_fname, dirbuf);
if (p == NULL)
p = gui.browse_fname;
return vim_strsave(p);
return vim_strsave(shorten_fname1(gui.browse_fname));
}
#if defined(HAVE_GTK2) || defined(PROTO)
@@ -1427,11 +1422,7 @@ gui_mch_browsedir(
return NULL;
/* shorten the file name if possible */
mch_dirname(dirbuf, MAXPATHL);
p = shorten_fname(dirname, dirbuf);
if (p == NULL || *p == NUL)
p = dirname;
p = vim_strsave(p);
p = vim_strsave(shorten_fname1(dirname));
g_free(dirname);
return p;