degesch: /buffer close switches to previous buffer
buffer_next() proved too annoying.
This commit is contained in:
parent
990e8d7d94
commit
bda1239a33
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user