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:
@@ -651,7 +651,7 @@ var CommandLine = Module("commandline", {
|
|||||||
_echoLine: function echoLine(str, highlightGroup, forceSingle, silent) {
|
_echoLine: function echoLine(str, highlightGroup, forceSingle, silent) {
|
||||||
this.widgets.message = str ? [highlightGroup, str] : null;
|
this.widgets.message = str ? [highlightGroup, str] : null;
|
||||||
|
|
||||||
dactyl.triggerObserver("echoLine", str, highlightGroup, forceSingle);
|
dactyl.triggerObserver("echoLine", str, highlightGroup, null, forceSingle);
|
||||||
|
|
||||||
if (!this.commandVisible)
|
if (!this.commandVisible)
|
||||||
this.hide();
|
this.hide();
|
||||||
@@ -843,11 +843,13 @@ var CommandLine = Module("commandline", {
|
|||||||
|
|
||||||
let output = [];
|
let output = [];
|
||||||
function observe(str, highlight, dom) {
|
function observe(str, highlight, dom) {
|
||||||
|
util.dumpStack();
|
||||||
output.push(dom && !isString(str) ? dom : str);
|
output.push(dom && !isString(str) ? dom : str);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.savingOutput = true;
|
this.savingOutput = true;
|
||||||
dactyl.trapErrors.apply(dactyl, [fn, self].concat(Array.slice(arguments, 2)));
|
dactyl.trapErrors.apply(dactyl, [fn, self].concat(Array.slice(arguments, 2)));
|
||||||
|
util.dump(output);
|
||||||
this.savingOutput = false;
|
this.savingOutput = false;
|
||||||
return output.map(function (elem) elem instanceof Node ? util.domToString(elem) : elem)
|
return output.map(function (elem) elem instanceof Node ? util.domToString(elem) : elem)
|
||||||
.join("\n");
|
.join("\n");
|
||||||
|
|||||||
@@ -510,7 +510,6 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
}
|
}
|
||||||
catch (e) {}
|
catch (e) {}
|
||||||
|
|
||||||
util.dumpStack(" ================ FOCUS CONTENT ================ ");
|
|
||||||
if (clearFocusedElement) {
|
if (clearFocusedElement) {
|
||||||
if (dactyl.focusedElement)
|
if (dactyl.focusedElement)
|
||||||
dactyl.focusedElement.blur();
|
dactyl.focusedElement.blur();
|
||||||
|
|||||||
Reference in New Issue
Block a user