summaryrefslogtreecommitdiff
path: root/src/gui_w48.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-09-30 12:02:55 +0000
committerBram Moolenaar <Bram@vim.org>2007-09-30 12:02:55 +0000
commitd089d9b33ac62ccc2783928a66c8f20499470920 (patch)
treea39eb1ed68513118c3e25482af67b556dbec02e0 /src/gui_w48.c
parent78ab331e0d8a76f553830f0347ac27311e4dc0f8 (diff)
downloadvim-git-d089d9b33ac62ccc2783928a66c8f20499470920.tar.gz
updated for version 7.1-126v7.1.126
Diffstat (limited to 'src/gui_w48.c')
-rw-r--r--src/gui_w48.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/gui_w48.c b/src/gui_w48.c
index f0739263f..cfbbbc00b 100644
--- a/src/gui_w48.c
+++ b/src/gui_w48.c
@@ -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 */