on master help sign in
buffer picker allow hsplit / vsplit (#1502)
commit85cf2648a2a5a73fb603244a0abf7de2ea8a0849 authorMathis Brossier <mathis.brossier@gmail.com> dateFri 14 Jan 2022, 07:32 (5 years ago) parenta2fad4f
1 file changed+2−2
helix-term/src/commands.rs+2−2
helix-term/src/commands.rs+2−2
@@ -3239,8 +3239,8 @@ fn buffer_picker(cx: &mut Context) {
32393239 .map(|(_, doc)| new_meta(doc))
32403240 .collect(),
32413241 BufferMeta::format,
3242− |editor: &mut Editor, meta, _action| {
3243− editor.switch(meta.id, Action::Replace);
3242+ |editor: &mut Editor, meta, action| {
3243+ editor.switch(meta.id, action);
32443244 },
32453245 |editor, meta| {
32463246 let doc = &editor.documents.get(&meta.id)?;