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
.open(path.clone(), Action::HorizontalSplit)
.and_then(|id| {
editor editor
.document_mut(id) .document_mut(id)
.unwrap() .unwrap()
.set_path(None) .set_path(None)
.map_err(Into::into) .map_err(Into::into)
}) { })
{
editor.set_error(e.to_string()); editor.set_error(e.to_string());
} }
}, },

Loading…
Cancel
Save