From 83df17f6608cd6ad52d707d520974684199044cf Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 16 Oct 2007 14:05:52 +0000 Subject: [PATCH] use the value of 'activate' when opening new tabs from the MOW --- content/buffers.js | 2 +- content/ui.js | 6 +++++- skin/vimperator.css | 3 +-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/content/buffers.js b/content/buffers.js index d33aede7..4c6348d4 100644 --- a/content/buffers.js +++ b/content/buffers.js @@ -248,7 +248,7 @@ function Buffer() //{{{ list += " " + number + "" + indicator + "" + title + - "" + url + ""; + "" + url + ""; } list += ""; diff --git a/content/ui.js b/content/ui.js index e7902b94..20a963c2 100644 --- a/content/ui.js +++ b/content/ui.js @@ -708,7 +708,11 @@ function CommandLine() //{{{ case "": // for those not owning a 3-button mouse case "": if (event.originalTarget.localName.toLowerCase() == "a") - vimperator.open(event.originalTarget.textContent, vimperator.NEW_BACKGROUND_TAB); + { + var where = /\btabopen\b/.test(vimperator.options["activate"]) ? + vimperator.NEW_TAB : vimperator.NEW_BACKGROUND_TAB; + vimperator.open(event.originalTarget.textContent, where); + } break; // let firefox handle those to select table cells or show a context menu diff --git a/skin/vimperator.css b/skin/vimperator.css index 17db1679..6e553aa9 100644 --- a/skin/vimperator.css +++ b/skin/vimperator.css @@ -179,8 +179,7 @@ the terms of any one of the MPL, the GPL or the LGPL. padding: 0px 2px; } -#vimperator-multiline-output-content a, -#vimperator-multiline-output-content .buffer-list { +#vimperator-multiline-output-content a { cursor: pointer; }