SF.net SVN: geany:[3386] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Tue Dec 16 13:38:11 UTC 2008


Revision: 3386
          http://geany.svn.sourceforge.net/geany/?rev=3386&view=rev
Author:   ntrel
Date:     2008-12-16 13:38:10 +0000 (Tue, 16 Dec 2008)

Log Message:
-----------
Set Find in Files directory entry to project base path or current
working directory if the current file has no path.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/search.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2008-12-16 13:26:39 UTC (rev 3385)
+++ trunk/ChangeLog	2008-12-16 13:38:10 UTC (rev 3386)
@@ -10,6 +10,9 @@
  * doc/geany.txt, doc/geany.html, data/snippets.conf:
    Snippet indentation will be replaced according to indent mode.
    Minor edit of snippet docs.
+ * src/search.c:
+   Set Find in Files directory entry to project base path or current
+   working directory if the current file has no path.
 
 
 2008-12-15  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/src/search.c
===================================================================
--- trunk/src/search.c	2008-12-16 13:26:39 UTC (rev 3385)
+++ trunk/src/search.c	2008-12-16 13:38:10 UTC (rev 3386)
@@ -819,7 +819,9 @@
 			/* use default_open_path if no directory could be determined
 			 * (e.g. when no files are open) */
 			if (!cur_dir)
-				cur_dir = g_strdup(prefs.default_open_path);
+				cur_dir = g_strdup(utils_get_default_dir_utf8());
+			if (!cur_dir)
+				cur_dir = g_get_current_dir();
 		}
 	}
 	if (cur_dir)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list