mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 15:47:59 +01:00
Preserve highlight when pusshing messages to the MOW.
This commit is contained in:
@@ -405,7 +405,7 @@ function Options() //{{{
|
|||||||
// safeSetPref might try to echomsg. Need commandline.
|
// safeSetPref might try to echomsg. Need commandline.
|
||||||
liberator.registerObserver("load_commandline", function () {
|
liberator.registerObserver("load_commandline", function () {
|
||||||
// TODO: maybe reset in .destroy()?
|
// TODO: maybe reset in .destroy()?
|
||||||
// TODO: move to vim.js or buffer.js
|
// TODO: move to buffer.js
|
||||||
// we have our own typeahead find implementation
|
// we have our own typeahead find implementation
|
||||||
options.safeSetPref("accessibility.typeaheadfind.autostart", false);
|
options.safeSetPref("accessibility.typeaheadfind.autostart", false);
|
||||||
options.safeSetPref("accessibility.typeaheadfind", false); // actually the above setting should do it, but has no effect in firefox
|
options.safeSetPref("accessibility.typeaheadfind", false); // actually the above setting should do it, but has no effect in firefox
|
||||||
@@ -562,7 +562,6 @@ function Options() //{{{
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
// TODO: support setting multiple options at once
|
|
||||||
commands.add(["se[t]"],
|
commands.add(["se[t]"],
|
||||||
"Set an option",
|
"Set an option",
|
||||||
function (args, modifiers)
|
function (args, modifiers)
|
||||||
|
|||||||
@@ -977,7 +977,8 @@ function CommandLine() //{{{
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (messageBox.value == lastEcho)
|
if (messageBox.value == lastEcho)
|
||||||
echoMultiline(lastEcho);
|
echoMultiline(<span highlight="Message">{lastEcho}</span>,
|
||||||
|
messageBox.getAttributeNS(NS.uri, "highlight"));
|
||||||
lastEcho = (action == echoLine) && str;
|
lastEcho = (action == echoLine) && str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user