mirror of
https://github.com/nushell/reedline.git
synced 2024-09-11 15:55:50 +03:00
allow reedline ctrl+o to take editor arguments (#544)
* allow reedline ctrl+o to take editor arguments * clippy
This commit is contained in:
parent
0082cc39ae
commit
ac1d9549a3
@ -1348,8 +1348,12 @@ impl Reedline {
|
||||
write!(file, "{}", self.editor.get_buffer())?;
|
||||
}
|
||||
|
||||
let mut ed = editor.split(' ');
|
||||
let command = ed.next();
|
||||
|
||||
{
|
||||
let mut process = Command::new(editor);
|
||||
let mut process = Command::new(command.unwrap_or(editor));
|
||||
process.args(ed);
|
||||
process.arg(temp_file.as_path());
|
||||
|
||||
let mut child = process.spawn()?;
|
||||
|
Loading…
Reference in New Issue
Block a user