To:
[email protected]
Subject: Patch 6.1a.012
Fcc: outbox
From: Bram Moolenaar <
[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
------------
Patch 6.1a.012
Problem: GTK: The file browser always returns a full path. (Lohner)
Solution: Shorten the file name if possible.
Files: src/gui_gtk.c
*** ../vim61a.011/src/gui_gtk.c Mon Feb 25 21:35:47 2002
--- src/gui_gtk.c Thu Feb 28 16:27:52 2002
***************
*** 867,872 ****
--- 867,873 ----
{
GtkFileSelection *fs; /* shortcut */
char_u dirbuf[MAXPATHL];
+ char_u *p;
if (!gui.filedlg)
{
***************
*** 918,924 ****
if (gui.browse_fname == NULL)
return NULL;
! return vim_strsave(gui.browse_fname);
}
#endif /* FEAT_BROWSE */
--- 919,931 ----
if (gui.browse_fname == NULL)
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);
}
#endif /* FEAT_BROWSE */
*** ../vim61a.011/src/version.c Thu Feb 28 15:43:51 2002
--- src/version.c Thu Feb 28 16:43:24 2002
***************
*** 608,609 ****
--- 608,611 ----
{ /* Add new patch number below this line */
+ /**/
+ 12,
/**/
--
hundred-and-one symptoms of being an internet addict:
89. In addition to your e-mail address being on your business cards
you even have your own domain.
/// Bram Moolenaar --
[email protected] --
http://www.moolenaar.net \\\
/// Creator of Vim --
http://vim.sf.net --
ftp://ftp.vim.org/pub/vim \\\
\\\ Project leader for A-A-P --
http://www.a-a-p.org ///
\\\ Help me helping AIDS orphans in Uganda -
http://iccf-holland.org ///