From 21b8064322628a674d3c10a19c32ddd357adcc6b Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Sun, 6 Jan 2008 02:14:09 +0000 Subject: [PATCH] fix for cursor being stuck in command line when switching tabs --- content/events.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/events.js b/content/events.js index 84b9d31b..b2196dfe 100644 --- a/content/events.js +++ b/content/events.js @@ -202,9 +202,8 @@ vimperator.Events = function () //{{{ }, false); tabcontainer.addEventListener("TabSelect", function (event) { - if (vimperator.mode == vimperator.modes.HINTS || vimperator.mode == vimperator.modes.CUSTOM ) - vimperator.modes.reset(); - + // TODO: is all of that necessary? + vimperator.modes.reset(); vimperator.commandline.clear(); vimperator.modes.show(); vimperator.statusline.updateTabCount();