buffer picker allow hsplit / vsplit (#1502)

pull/1507/head
Mathis Brossier 2 years ago committed by GitHub
parent a2fad4fcb0
commit 85cf2648a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)?;

Loading…
Cancel
Save