Add backslash to the wordchars on Windows when using 'Open Selected File'.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3846 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2009-06-08 19:16:23 +00:00
parent 3a03845045
commit 17657b71c9
2 changed files with 15 additions and 1 deletions

View File

@ -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:

View File

@ -1856,10 +1856,17 @@ on_menu_open_selected_file1_activate (GtkMenuItem *menuitem,
{
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)
{