mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-20 14:05:45 +01:00
Fix "match n of m" remaining in the progress line after <Esc>.
This commit is contained in:
@@ -257,9 +257,7 @@ const CommandLine = Module("commandline", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this._statusTimer = Timer(5, 100, function statusTell() {
|
this._statusTimer = Timer(5, 100, function statusTell() {
|
||||||
if (self._completions == null)
|
if (self._completions == null || self._completions.selected == null)
|
||||||
return;
|
|
||||||
if (self._completions.selected == null)
|
|
||||||
statusline.progess = "";
|
statusline.progess = "";
|
||||||
else
|
else
|
||||||
statusline.progress = "match " + (self._completions.selected + 1) + " of " + self._completions.items.length;
|
statusline.progress = "match " + (self._completions.selected + 1) + " of " + self._completions.items.length;
|
||||||
|
|||||||
@@ -383,13 +383,14 @@ const Dactyl = Module("dactyl", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
focus: function (elem, flags) {
|
focus: function (elem, flags) {
|
||||||
|
flags = flags || services.focus.FLAG_BYMOUSE;
|
||||||
try {
|
try {
|
||||||
if (elem instanceof Document)
|
if (elem instanceof Document)
|
||||||
elem = elem.defaultView;
|
elem = elem.defaultView;
|
||||||
if (elem instanceof Window)
|
if (elem instanceof Window)
|
||||||
services.focus.clearFocus(elem);
|
services.focus.clearFocus(elem);
|
||||||
else
|
else
|
||||||
services.focus.setFocus(elem, flags || services.focus.FLAG_BYMOUSE);
|
services.focus.setFocus(elem, flags);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
util.dump(elem);
|
util.dump(elem);
|
||||||
util.reportError(e);
|
util.reportError(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user