diff options
author | Kris Maglione <kris@vimperator.org> | 2010-08-26 15:18:49 -0400 |
---|---|---|
committer | Kris Maglione <kris@vimperator.org> | 2010-08-26 15:18:49 -0400 |
commit | 7a6365b54fe730c1ae0ea815de5af8f033d24e03 (patch) | |
tree | 2c1cbe9745440fae43b94a5639dd35c0bb62ca5e /common/content/io.js | |
parent | 2375a00fb41455a8581b6e8cad45414829eb714f (diff) | |
parent | c3ec6fff4af9bff844d3ae84bc164bd4184fe811 (diff) | |
download | pentadactyl-7a6365b54fe730c1ae0ea815de5af8f033d24e03.tar.gz |
Merge.
--HG--
branch : testing
Diffstat (limited to 'common/content/io.js')
-rwxr-xr-x[-rw-r--r--] | common/content/io.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/content/io.js b/common/content/io.js index 4ca6174f..7c85d331 100644..100755 --- a/common/content/io.js +++ b/common/content/io.js @@ -924,7 +924,7 @@ lookup: "List all sourced script names", function () { let list = template.tabular(["<SNR>", "Filename"], ["text-align: right; padding-right: 1em;"], - ([i + 1, file] for ([i, file] in Iterator(this._scriptNames)))); // TODO: add colon and remove column titles for pedantic Vim compatibility? + ([i + 1, file] for ([i, file] in Iterator(io._scriptNames)))); // TODO: add colon and remove column titles for pedantic Vim compatibility? commandline.echo(list, commandline.HL_NORMAL, commandline.FORCE_MULTILINE); }, @@ -954,16 +954,16 @@ lookup: arg = "!" + arg; // replaceable bang and no previous command? - liberator.assert(!/((^|[^\\])(\\\\)*)!/.test(arg) || this._lastRunCommand, + liberator.assert(!/((^|[^\\])(\\\\)*)!/.test(arg) || io._lastRunCommand, "E34: No previous command"); // NOTE: Vim doesn't replace ! preceded by 2 or more backslashes and documents it - desirable? // pass through a raw bang when escaped or substitute the last command arg = arg.replace(/(\\)*!/g, - function (m) /^\\(\\\\)*!$/.test(m) ? m.replace("\\!", "!") : m.replace("!", this._lastRunCommand) + function (m) /^\\(\\\\)*!$/.test(m) ? m.replace("\\!", "!") : m.replace("!", io._lastRunCommand) ); - this._lastRunCommand = arg; + io._lastRunCommand = arg; let output = io.system(arg); |