From 0e21b478636fac986a5e2276662da6a6e1692f9e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Feb 2013 15:34:03 +0300 Subject: Add support for help seach links. To add link to search text: /url ?text Also add support for links in format: help://topic --- src/commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index 73a9f40ce..b085cbd7c 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1038,7 +1038,7 @@ impHandler(url) if (tab) { std::string url = args; - if (!strStartWith(url, "http")) + if (!strStartWith(url, "http") && !strStartWith(url, "?")) url = "http://" + url; std::string str = strprintf("[@@%s |%s@@]", url.c_str(), args.c_str()); outStringNormal(tab, str, str); -- cgit v1.2.3-70-g09d2