diff --git a/content/tabs.js b/content/tabs.js index 13163080..95c84841 100644 --- a/content/tabs.js +++ b/content/tabs.js @@ -177,6 +177,8 @@ function Tabs() //{{{ window.close(); else vimperator.quit(quit_on_last_tab == 2); + + return; } var index = this.index(tab); diff --git a/content/ui.js b/content/ui.js index 20a963c2..6c44a91c 100644 --- a/content/ui.js +++ b/content/ui.js @@ -1083,6 +1083,16 @@ function StatusLine() //{{{ status_bar.setAttribute("class", "chromeclass-status " + highlight_group); }; + // update all fields of the statusline + this.update = function() + { + this.updateUrl(); + this.updateInputBuffer(); + this.updateProgress(); + this.updateTabCount(); + this.updateBufferPosition(); + } + // if "url" is ommited, build a usable string for the URL this.updateUrl = function(url) { diff --git a/content/vimperator.js b/content/vimperator.js index d89e5b87..97e20ecb 100644 --- a/content/vimperator.js +++ b/content/vimperator.js @@ -42,7 +42,6 @@ const vimperator = (function() //{{{ var callbacks = []; - function expandPath(path) { const WINDOWS = navigator.platform == "Win32"; @@ -787,6 +786,7 @@ const vimperator = (function() //{{{ } }, 50); + vimperator.statusline.update(); vimperator.log("Vimperator fully initialized", 1); },