dのtabclose

2.0preの途中からtabcloseの挙動が強制右アクティブになっていた。
前は noremap d :tabclose! で逃げていたんだけど、2008-11-17でやっていた設定を適用。

うごかない…

どうもtabmixでgBrowserのメソッドを追加しているぽい。
(userChrome派なもので…w)
で、tabmix使ってない人はこんな感じでちゃんと動くようになると思います〜


let (cmd = mappings.getDefault(modes.NORMAL, 'd'))
let (action = cmd.action)
cmd.action = function (count)
(count >= 0 ? action.apply(this, arguments) : BrowserCloseTabOrWindow());

document.getElementById("cmd_close").doCommand() とかでも動くかもしれなかったんだけど、なんとなく気持ち悪いのでやめた。