|
|
@ -2196,8 +2196,7 @@ mod cmd {
|
|
|
|
args: &[&str],
|
|
|
|
args: &[&str],
|
|
|
|
_event: PromptEvent,
|
|
|
|
_event: PromptEvent,
|
|
|
|
) -> anyhow::Result<()> {
|
|
|
|
) -> anyhow::Result<()> {
|
|
|
|
let (_, doc) = current!(cx.editor);
|
|
|
|
let id = view!(cx.editor).doc;
|
|
|
|
let id = doc.id();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if let Some(path) = args.get(0) {
|
|
|
|
if let Some(path) = args.get(0) {
|
|
|
|
cx.editor.open(path.into(), Action::VerticalSplit)?;
|
|
|
|
cx.editor.open(path.into(), Action::VerticalSplit)?;
|
|
|
@ -2213,8 +2212,7 @@ mod cmd {
|
|
|
|
args: &[&str],
|
|
|
|
args: &[&str],
|
|
|
|
_event: PromptEvent,
|
|
|
|
_event: PromptEvent,
|
|
|
|
) -> anyhow::Result<()> {
|
|
|
|
) -> anyhow::Result<()> {
|
|
|
|
let (_, doc) = current!(cx.editor);
|
|
|
|
let id = view!(cx.editor).doc;
|
|
|
|
let id = doc.id();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if let Some(path) = args.get(0) {
|
|
|
|
if let Some(path) = args.get(0) {
|
|
|
|
cx.editor.open(path.into(), Action::HorizontalSplit)?;
|
|
|
|
cx.editor.open(path.into(), Action::HorizontalSplit)?;
|
|
|
|