mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 08:34:11 +01:00
Merge default.
--HG-- branch : key-processing
This commit is contained in:
@@ -425,7 +425,7 @@ var Buffer = Module("buffer", {
|
||||
/**
|
||||
* @property {string} The current top-level document's URL.
|
||||
*/
|
||||
get URL() update(content.location.href, util.newURI(content.location.href)),
|
||||
get URL() update(new String(content.location.href), util.newURI(content.location.href)),
|
||||
|
||||
/**
|
||||
* @property {number} The buffer's height in pixels.
|
||||
|
||||
@@ -1213,9 +1213,10 @@ var Commands = Module("commands", {
|
||||
return [len - str.length, arg, quote];
|
||||
},
|
||||
|
||||
quote: function quote(str) Commands.quoteArg[/[\s"'\\]|^$|^-/.test(str)
|
||||
? (/[\b\f\n\r\t]/.test(str) ? '"' : "'")
|
||||
: ""](str)
|
||||
quote: function quote(str) Commands.quoteArg[
|
||||
/[\b\f\n\r\t]/.test(str) ? '"' :
|
||||
/[\s"'\\]|^$|^-/.test(str) ? "'"
|
||||
: ""](str)
|
||||
}, {
|
||||
completion: function () {
|
||||
completion.command = function command(context) {
|
||||
|
||||
Reference in New Issue
Block a user