mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 21:07:59 +01:00
fixed :o http://www.url.com
This commit is contained in:
@@ -3,6 +3,8 @@ date:
|
||||
* version 0.4
|
||||
* extension GUID was changed to 'vimperator@mozdev.net' -> YOU WILL HAVE
|
||||
TO UNINSTALL ANY OLD VIMPERATOR INSTALLATION BEFORE INSTALLING THIS VERSION
|
||||
* support for internal search engines was dropped. Now we use Firefox
|
||||
search engines. Add custom search engines with :qsadd, remove engines with :qsdel
|
||||
* support for 'wildmode' completion setting with support for matching the
|
||||
longest common substring. Also new 'wildoptions' setting
|
||||
* added 'f' to the 'complete' option to allow listing of filenames in :open prompt
|
||||
|
||||
@@ -1331,9 +1331,13 @@ function stringToURLs(str)
|
||||
|
||||
/* if the string contains a space or does not contain any of: .:/
|
||||
* open it with default search engine */
|
||||
if (urls[url].match(/\s+/) || urls[url].match(/\.|:|\//) == null)
|
||||
{
|
||||
var default_engine = search_service.defaultEngine;
|
||||
if (default_engine)
|
||||
urls[url] = default_engine.getSubmission(urls[url], null).uri.spec;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
// check for ./ and ../ (or even .../) to go to a file in the upper directory
|
||||
|
||||
Reference in New Issue
Block a user