From a3799d3d05a053bb00a748943d7676453c921c82 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 15 Oct 2010 00:30:03 -0400 Subject: Import (and augment) my cookies plugin per Doug's suggestion, and improve dactyl.generateHelp (and :yank). --- common/content/commandline.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'common/content/commandline.js') diff --git a/common/content/commandline.js b/common/content/commandline.js index 0ec215b6..1bfbcfb9 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -1571,8 +1571,6 @@ const CommandLine = Module("commandline", { if (typeof arg === "object") arg = util.objectToString(arg, useColor); - else if (typeof arg === "string" && /\n/.test(arg)) - arg = {arg}; else arg = String(arg); @@ -1983,7 +1981,8 @@ const ItemList = Class("ItemList", { this._fill(newOffset); if (index >= 0) { this._getCompletion(index).setAttribute("selected", "true"); - util.scrollIntoView(this._getCompletion(index)); + if (this._container.height != 0) + util.scrollIntoView(this._getCompletion(index)); } //if (index == 0) -- cgit v1.2.3