From 3e2f97cee505092e91f31c4dc7c09f13e167468f Mon Sep 17 00:00:00 2001 From: Daniel Bainton Date: Tue, 21 Oct 2008 14:03:56 +0000 Subject: [PATCH] Fix 'match 5 of 4' to be correct --- content/ui.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/ui.js b/content/ui.js index 9f0ecf15..551245b6 100644 --- a/content/ui.js +++ b/content/ui.js @@ -107,8 +107,12 @@ function CommandLine() //{{{ var wildIndex = 0; // keep track how often we press in a row var startHints = false; // whether we're waiting to start hints mode - var statusTimer = new util.Timer(5, 100, function () - statusline.updateProgress("match " + (completionIndex + 1) + " of " + completions.length)); + var statusTimer = new util.Timer(5, 100, function () { + if (completionIndex >= completions.length) + statusline.updateProgress(""); + else + statusline.updateProgress("match " + (completionIndex + 1) + " of " + completions.length); + }); var autocompleteTimer = new util.Timer(201, 300, function (command) { if (events.feedingKeys) return;