buffer picker allow hsplit / vsplit (#1502)

This commit is contained in:
Mathis Brossier 2022-01-14 07:32:24 +01:00 committed by GitHub
parent a2fad4fcb0
commit 85cf2648a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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