buffer picker allow hsplit / vsplit (#1502)

imgbot
Mathis Brossier 3 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)) .map(|(_, doc)| new_meta(doc))
.collect(), .collect(),
BufferMeta::format, BufferMeta::format,
|editor: &mut Editor, meta, _action| { |editor: &mut Editor, meta, action| {
editor.switch(meta.id, Action::Replace); editor.switch(meta.id, action);
}, },
|editor, meta| { |editor, meta| {
let doc = &editor.documents.get(&meta.id)?; let doc = &editor.documents.get(&meta.id)?;

Loading…
Cancel
Save