diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-09-30 12:02:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-09-30 12:02:55 +0000 |
commit | d089d9b33ac62ccc2783928a66c8f20499470920 (patch) | |
tree | a39eb1ed68513118c3e25482af67b556dbec02e0 /src/gui_w48.c | |
parent | 78ab331e0d8a76f553830f0347ac27311e4dc0f8 (diff) | |
download | vim-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.c | 12 |
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 */ |