diff options
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4235,11 +4235,11 @@ buffer_rename (struct app_context *ctx, str_map_set (&ctx->buffers_by_name, buffer->name, NULL); str_map_set (&ctx->buffers_by_name, new_name, buffer); + cstr_set (&buffer->name, xstrdup (new_name)); + buffer_close_log_file (buffer); buffer_open_log_file (ctx, buffer); - cstr_set (&buffer->name, xstrdup (new_name)); - // We might have renamed the current buffer refresh_prompt (ctx); } |