mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-04 12:15: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() {
|
||||
if (self._completions == null)
|
||||
return;
|
||||
if (self._completions.selected == null)
|
||||
if (self._completions == null || self._completions.selected == null)
|
||||
statusline.progess = "";
|
||||
else
|
||||
statusline.progress = "match " + (self._completions.selected + 1) + " of " + self._completions.items.length;
|
||||
|
||||
@@ -383,13 +383,14 @@ const Dactyl = Module("dactyl", {
|
||||
},
|
||||
|
||||
focus: function (elem, flags) {
|
||||
flags = flags || services.focus.FLAG_BYMOUSE;
|
||||
try {
|
||||
if (elem instanceof Document)
|
||||
elem = elem.defaultView;
|
||||
if (elem instanceof Window)
|
||||
services.focus.clearFocus(elem);
|
||||
else
|
||||
services.focus.setFocus(elem, flags || services.focus.FLAG_BYMOUSE);
|
||||
services.focus.setFocus(elem, flags);
|
||||
} catch (e) {
|
||||
util.dump(elem);
|
||||
util.reportError(e);
|
||||
|
||||
Reference in New Issue
Block a user