1
0
forked from aniani/vim

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

@@ -3301,11 +3301,7 @@ gui_mch_browseW(
SetFocus(s_hwnd);
/* Shorten the file name if possible */
mch_dirname(IObuff, IOSIZE);
p = shorten_fname((char_u *)fileBuf, IObuff);
if (p == NULL)
p = (char_u *)fileBuf;
return vim_strsave(p);
return vim_strsave(shorten_fname1((char_u *)fileBuf));
}
# endif /* FEAT_MBYTE */
@@ -3450,11 +3446,7 @@ gui_mch_browse(
SetFocus(s_hwnd);
/* Shorten the file name if possible */
mch_dirname(IObuff, IOSIZE);
p = shorten_fname((char_u *)fileBuf, IObuff);
if (p == NULL)
p = (char_u *)fileBuf;
return vim_strsave(p);
return vim_strsave(shorten_fname1((char_u *)fileBuf));
}
#endif /* FEAT_BROWSE */