• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revisãoa1c1f001b99dd591d9082db95de70e2bf8f9e8de (tree)
Hora2006-10-11 01:28:30
Autorvimboss
Commitervimboss

Mensagem de Log

updated for version 7.0-129

Mudança Sumário

Diff

diff -r 41ab6b381572 -r a1c1f001b99d src/gui_gtk.c
--- a/src/gui_gtk.c Tue Oct 10 15:35:57 2006 +0000
+++ b/src/gui_gtk.c Tue Oct 10 16:28:30 2006 +0000
@@ -1275,18 +1275,13 @@
12751275 title = CONVERT_TO_UTF8(title);
12761276 # endif
12771277
1278- /* Concatenate "initdir" and "dflt". */
1278+ /* GTK has a bug, it only works with an absolute path. */
12791279 if (initdir == NULL || *initdir == NUL)
12801280 mch_dirname(dirbuf, MAXPATHL);
1281- else if (STRLEN(initdir) + 2 < MAXPATHL)
1282- STRCPY(dirbuf, initdir);
1283- else
1281+ else if (vim_FullName(initdir, dirbuf, MAXPATHL - 2, FALSE) == FAIL)
12841282 dirbuf[0] = NUL;
12851283 /* Always need a trailing slash for a directory. */
12861284 add_pathsep(dirbuf);
1287- if (dflt != NULL && *dflt != NUL
1288- && STRLEN(dirbuf) + 2 + STRLEN(dflt) < MAXPATHL)
1289- STRCAT(dirbuf, dflt);
12901285
12911286 /* If our pointer is currently hidden, then we should show it. */
12921287 gui_mch_mousehide(FALSE);
@@ -1341,6 +1336,11 @@
13411336 else
13421337 gtk_window_set_title(GTK_WINDOW(gui.filedlg), (const gchar *)title);
13431338
1339+ /* Concatenate "initdir" and "dflt". */
1340+ if (dflt != NULL && *dflt != NUL
1341+ && STRLEN(dirbuf) + 2 + STRLEN(dflt) < MAXPATHL)
1342+ STRCAT(dirbuf, dflt);
1343+
13441344 gtk_file_selection_set_filename(GTK_FILE_SELECTION(gui.filedlg),
13451345 (const gchar *)dirbuf);
13461346 # ifndef HAVE_GTK2
diff -r 41ab6b381572 -r a1c1f001b99d src/version.c
--- a/src/version.c Tue Oct 10 15:35:57 2006 +0000
+++ b/src/version.c Tue Oct 10 16:28:30 2006 +0000
@@ -667,6 +667,8 @@
667667 static int included_patches[] =
668668 { /* Add new patch number below this line */
669669 /**/
670+ 129,
671+/**/
670672 128,
671673 /**/
672674 127,
Show on old repository browser