SF.net SVN: geany:[3846] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Mon Jun 8 19:16:23 UTC 2009


Revision: 3846
          http://geany.svn.sourceforge.net/geany/?rev=3846&view=rev
Author:   eht16
Date:     2009-06-08 19:16:23 +0000 (Mon, 08 Jun 2009)

Log Message:
-----------
Add backslash to the wordchars on Windows when using 'Open Selected File'.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-06-08 18:05:34 UTC (rev 3845)
+++ trunk/ChangeLog	2009-06-08 19:16:23 UTC (rev 3846)
@@ -1,3 +1,10 @@
+2009-06-08  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/callbacks.c:
+   Add backslash to the wordchars on Windows when using
+   'Open Selected File'.
+
+
 2009-06-05  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
 
  * src/toolbar.c:

Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c	2009-06-08 18:05:34 UTC (rev 3845)
+++ trunk/src/callbacks.c	2009-06-08 19:16:23 UTC (rev 3846)
@@ -1856,10 +1856,17 @@
 {
 	GeanyDocument *doc = document_get_current();
 	gchar *sel = NULL;
+	const gchar *wc;
 
+#ifdef G_OS_WIN32
+	wc = GEANY_WORDCHARS "./-" "\\";
+#else
+	wc = GEANY_WORDCHARS "./-";
+#endif
+
 	g_return_if_fail(doc != NULL);
 
-	sel = editor_get_default_selection(doc->editor, TRUE, GEANY_WORDCHARS"./-");
+	sel = editor_get_default_selection(doc->editor, TRUE, wc);
 
 	if (sel != NULL)
 	{


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