Fix broken opening URLs e.g. when using the 'builtin' Run command.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4860 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
1cac20b8da
commit
f12ed2fabe
@ -6,6 +6,7 @@
|
|||||||
* src/win32.c:
|
* src/win32.c:
|
||||||
Change the limit for the command line length when executing commands
|
Change the limit for the command line length when executing commands
|
||||||
to a maximum of 32768 characters (closes #2979697).
|
to a maximum of 32768 characters (closes #2979697).
|
||||||
|
Fix broken opening URLs e.g. when using the 'builtin' Run command.
|
||||||
* tagmanager/ctags.c:
|
* tagmanager/ctags.c:
|
||||||
Change eFree() to simply ignore NULL pointers instead of asserting.
|
Change eFree() to simply ignore NULL pointers instead of asserting.
|
||||||
* src/main.c:
|
* src/main.c:
|
||||||
|
|||||||
@ -700,9 +700,12 @@ void win32_open_browser(const gchar *uri)
|
|||||||
if (strncmp(uri, "file://", 7) == 0)
|
if (strncmp(uri, "file://", 7) == 0)
|
||||||
{
|
{
|
||||||
uri += 7;
|
uri += 7;
|
||||||
|
if (strchr(uri, ':') != NULL)
|
||||||
|
{
|
||||||
while (*uri == '/')
|
while (*uri == '/')
|
||||||
uri++;
|
uri++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
ShellExecute(NULL, "open", uri, NULL, NULL, SW_SHOWNORMAL);
|
ShellExecute(NULL, "open", uri, NULL, NULL, SW_SHOWNORMAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user