Make `:help topics` open in a split

pull/997/head
Omnikar 3 years ago
parent 835d5152e5
commit cc4c78608b
No known key found for this signature in database
GPG Key ID: 7DE6694CDA7885ED

@ -2772,14 +2772,17 @@ pub mod cmd {
.map(From::from) .map(From::from)
.unwrap_or_default() .unwrap_or_default()
}, },
|editor, path, action| { |editor, path, _action| {
if let Err(e) = editor.open(path.clone(), action).and_then(|id| { if let Err(e) = editor
editor .open(path.clone(), Action::HorizontalSplit)
.document_mut(id) .and_then(|id| {
.unwrap() editor
.set_path(None) .document_mut(id)
.map_err(Into::into) .unwrap()
}) { .set_path(None)
.map_err(Into::into)
})
{
editor.set_error(e.to_string()); editor.set_error(e.to_string());
} }
}, },

Loading…
Cancel
Save