From 820b509eb362089908ffe4df6f91138e639272f6 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Sat, 15 Aug 2009 18:04:38 +0200 Subject: [PATCH] Fix ; throwing an error --- common/content/ui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/content/ui.js b/common/content/ui.js index ad138466..7a4820f5 100755 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -1300,7 +1300,10 @@ function CommandLine() //{{{ event.preventDefault(); event.stopPropagation(); - history.select(/Up/.test(key), !/(Page|S-)/.test(key)); + if (history) + history.select(/Up/.test(key), !/(Page|S-)/.test(key)); + else + liberator.beep(); return false; } // user pressed TAB to get completions of a command