New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open www links without protocol #345
Comments
Original comment by
|
A simple change to handle www addresses is: diff --git a/src/winclip.c b/src/winclip.c
index 02b7785..137e184 100644
--- a/src/winclip.c
+++ b/src/winclip.c
@@ -52,7 +52,7 @@ win_open(wstring wpath)
wstring p = wpath;
while (iswalpha(*p)) p++;
- if (*wpath == '\\' || *p == ':') {
+ if (*wpath == '\\' || *p == ':' || (wcslen(wpath) > 4 && wcsncmp(L"www.", wpath, 4) == 0)) {
// Looks like it's a Windows path or URI
shell_exec(wpath);
} This works for me when selecting www.google.co.uk and clicking Open. A potential issue with this approach is that it would match files beggining with Any thoughts on this? |
Included in 2.2.4, thank you. |
Original issue reported on code.google.com by
adrianlund
on 10 Jul 2012 at 5:17The text was updated successfully, but these errors were encountered: