mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-18 06:03:32 +01:00
clear the commandline when changing tabs
This commit is contained in:
@@ -52,6 +52,7 @@ function Events() //{{{
|
|||||||
vimperator.buffer.updateBufferList();
|
vimperator.buffer.updateBufferList();
|
||||||
}, false);
|
}, false);
|
||||||
tabcontainer.addEventListener("TabSelect", function(event) {
|
tabcontainer.addEventListener("TabSelect", function(event) {
|
||||||
|
vimperator.commandline.clear();
|
||||||
vimperator.statusline.updateTabCount();
|
vimperator.statusline.updateTabCount();
|
||||||
vimperator.buffer.updateBufferList();
|
vimperator.buffer.updateBufferList();
|
||||||
vimperator.tabs.updateSelectionHistory();
|
vimperator.tabs.updateSelectionHistory();
|
||||||
@@ -506,12 +507,12 @@ function Events() //{{{
|
|||||||
else
|
else
|
||||||
vimperator.modes.reset();
|
vimperator.modes.reset();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case vimperator.modes.COMMAND_LINE:
|
case vimperator.modes.COMMAND_LINE:
|
||||||
vimperator.commandline.close();
|
vimperator.commandline.close();
|
||||||
vimperator.modes.reset();
|
vimperator.modes.reset();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// clear any selection made
|
// clear any selection made
|
||||||
var selection = window.content.getSelection();
|
var selection = window.content.getSelection();
|
||||||
|
|||||||
Reference in New Issue
Block a user