[Conkeror] [PATCH] Use `current' setter rather than `switch_to' in

David House dmhouse at gmail.com
Wed Aug 27 12:19:52 PDT 2008


---
 modules/buffer.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/buffer.js b/modules/buffer.js
index f6da587..98b1f31 100644
--- a/modules/buffer.js
+++ b/modules/buffer.js
@@ -403,10 +403,9 @@ buffer_container.prototype = {
     bury_buffer : function(b) {
       var new_buffer = this.buffer_list[0];
       if (b == new_buffer) new_buffer = this.buffer_list[1];
-      this._switch_to(this.buffer_list[1]);
       this.buffer_list.splice(this.buffer_list.indexOf(b), 1);
       this.buffer_list.push(b);
-      this._switch_to(new_buffer);
+      this.current = new_buffer;
       return true;
     },
 
-- 
1.5.4.3



More information about the Conkeror mailing list