diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-04 20:04:20 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-07-04 20:04:20 +0200 |
commit | bda1239a335f76e065e23ee3878bb20f5843e112 (patch) | |
tree | e440233db0d482bc3a7913ad3f4b80f16533a5f6 /degesch.c | |
parent | 990e8d7d948ab062fa612ff79bbd35dda0082f14 (diff) | |
download | xK-bda1239a335f76e065e23ee3878bb20f5843e112.tar.gz xK-bda1239a335f76e065e23ee3878bb20f5843e112.tar.xz xK-bda1239a335f76e065e23ee3878bb20f5843e112.zip |
degesch: /buffer close switches to previous buffer
buffer_next() proved too annoying.
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6404,7 +6404,9 @@ handle_buffer_close (struct app_context *ctx, struct handler_args *a) irc_send (buffer->server, "PART %s", buffer->channel->name); if (buffer == ctx->current_buffer) - buffer_activate (ctx, buffer_next (ctx, 1)); + buffer_activate (ctx, ctx->last_buffer + ? ctx->last_buffer + : buffer_next (ctx, 1)); buffer_remove (ctx, buffer); } } |