@@ -3239,8 +3239,8 @@ fn buffer_picker(cx: &mut Context) {
3239 .map(|(_, doc)| new_meta(doc))
3239 .map(|(_, doc)| new_meta(doc))
3240 .collect(),
3240 .collect(),
3241 BufferMeta::format,
3241 BufferMeta::format,
3242− |editor: &mut Editor, meta, _action| {
3242+ |editor: &mut Editor, meta, action| {
3243− editor.switch(meta.id, Action::Replace);
3243+ editor.switch(meta.id, action);
3245 |editor, meta| {
3245 |editor, meta| {
3246 let doc = &editor.documents.get(&meta.id)?;
3246 let doc = &editor.documents.get(&meta.id)?;