mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 22:37:58 +01:00
Merge branch 'master' of kmaglione@git.vimperator.org:/git/vimperator/liberator
This commit is contained in:
@@ -1169,10 +1169,10 @@ function Completion() //{{{
|
||||
let styles = {};
|
||||
|
||||
buffer.alternateStyleSheets.forEach(function (style) {
|
||||
if (style.title in styles)
|
||||
styles[style.title].push(style.href);
|
||||
else
|
||||
styles[style.title] = [style.href];
|
||||
if (!(style.title in styles))
|
||||
styles[style.title] = [];
|
||||
|
||||
styles[style.title].push(style.href || "inline");
|
||||
});
|
||||
|
||||
context.completions = [[s, styles[s].join(", ")] for (s in styles)];
|
||||
@@ -1606,9 +1606,9 @@ function Completion() //{{{
|
||||
// if the 'complete' argument is passed like "h", it temporarily overrides the complete option
|
||||
url: function url(context, complete)
|
||||
{
|
||||
var numLocationCompletions = 0; // how many async completions did we already return to the caller?
|
||||
var start = 0;
|
||||
var skip = context.filter.match("^.*" + options["urlseparator"]); // start after the last 'urlseparator'
|
||||
let numLocationCompletions = 0; // how many async completions did we already return to the caller?
|
||||
let start = 0;
|
||||
let skip = context.filter.match("^.*" + options["urlseparator"]); // start after the last 'urlseparator'
|
||||
if (skip)
|
||||
context.advance(skip[0].length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user