summaryrefslogtreecommitdiff
path: root/src/main/cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/cmds.c')
-rw-r--r--src/main/cmds.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/cmds.c b/src/main/cmds.c
index 989f28e..a7b509d 100644
--- a/src/main/cmds.c
+++ b/src/main/cmds.c
@@ -334,7 +334,10 @@ int32_t buflist_refresh_cmd(struct command_ctx ctx, int argc,
const char *argv[]) {
(void)argc;
(void)argv;
- buflist_refresh(window_buffer(ctx.active_window), ctx.buffers);
+ struct buffer *b = buffers_find(ctx.buffers, "*buffers*");
+ if (b != NULL) {
+ buflist_refresh(b, ctx.buffers);
+ }
return 0;
}