diff --git a/ChangeLog b/ChangeLog index 7b6b8720..71d37764 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ Add a translation hint to an ambiguous format string. * src/Makefile.am: Add missing include path to fix 'make distcheck'. + * src/win32.c: + Fix opening of local files in the browser on Windows. * New release: Geany 0.18 "Kaine". diff --git a/src/win32.c b/src/win32.c index 2f7bb727..5c460d85 100644 --- a/src/win32.c +++ b/src/win32.c @@ -644,8 +644,11 @@ gint win32_message_dialog_unsaved(const gchar *msg) void win32_open_browser(const gchar *uri) { if (strncmp(uri, "file://", 7) == 0) + { uri += 7; - + while (*uri == '/') + uri++; + } ShellExecute(NULL, "open", uri, NULL, NULL, SW_SHOWNORMAL); }