From 85cf2648a2a5a73fb603244a0abf7de2ea8a0849 Mon Sep 17 00:00:00 2001 From: Mathis Brossier Date: Fri, 14 Jan 2022 07:32:24 +0100 Subject: [PATCH] buffer picker allow hsplit / vsplit (#1502) --- helix-term/src/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 5c26a5b2a..71ac8f093 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -3239,8 +3239,8 @@ fn buffer_picker(cx: &mut Context) { .map(|(_, doc)| new_meta(doc)) .collect(), BufferMeta::format, - |editor: &mut Editor, meta, _action| { - editor.switch(meta.id, Action::Replace); + |editor: &mut Editor, meta, action| { + editor.switch(meta.id, action); }, |editor, meta| { let doc = &editor.documents.get(&meta.id)?;