Merge pull request #1382 from matthiasbeyer/libimagrt/fix-editor-args
Fix: Editor commands should be split at whitespace
This commit is contained in:
commit
6bf9012aa8
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ impl<'a> Runtime<'a> {
|
||||||
.ok_or_else(|| RuntimeErrorKind::IOError.into())
|
.ok_or_else(|| RuntimeErrorKind::IOError.into())
|
||||||
.map_dbg(|s| format!("Editing with '{}'", s))
|
.map_dbg(|s| format!("Editing with '{}'", s))
|
||||||
.and_then(|s| {
|
.and_then(|s| {
|
||||||
let mut split = s.split(" ");
|
let mut split = s.split_whitespace();
|
||||||
let command = split.next();
|
let command = split.next();
|
||||||
if command.is_none() {
|
if command.is_none() {
|
||||||
return Ok(None)
|
return Ok(None)
|
||||||
|
|
Loading…
Reference in a new issue