diff options
-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); } } |