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:
parent
3a03845045
commit
17657b71c9
@ -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:
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user