1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 00:17:58 +01:00

Fix :yank bug. Closes issue #330.

This commit is contained in:
Kris Maglione
2011-02-03 13:17:51 -05:00
parent 4116196a69
commit 0735b2d81c
2 changed files with 3 additions and 2 deletions

View File

@@ -651,7 +651,7 @@ var CommandLine = Module("commandline", {
_echoLine: function echoLine(str, highlightGroup, forceSingle, silent) {
this.widgets.message = str ? [highlightGroup, str] : null;
dactyl.triggerObserver("echoLine", str, highlightGroup, forceSingle);
dactyl.triggerObserver("echoLine", str, highlightGroup, null, forceSingle);
if (!this.commandVisible)
this.hide();
@@ -843,11 +843,13 @@ var CommandLine = Module("commandline", {
let output = [];
function observe(str, highlight, dom) {
util.dumpStack();
output.push(dom && !isString(str) ? dom : str);
}
this.savingOutput = true;
dactyl.trapErrors.apply(dactyl, [fn, self].concat(Array.slice(arguments, 2)));
util.dump(output);
this.savingOutput = false;
return output.map(function (elem) elem instanceof Node ? util.domToString(elem) : elem)
.join("\n");

View File

@@ -510,7 +510,6 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
}
catch (e) {}
util.dumpStack(" ================ FOCUS CONTENT ================ ");
if (clearFocusedElement) {
if (dactyl.focusedElement)
dactyl.focusedElement.blur();