Merge pull request #1382 from matthiasbeyer/libimagrt/fix-editor-args

Fix: Editor commands should be split at whitespace
This commit is contained in:
Matthias Beyer 2018-04-08 22:21:12 +02:00 committed by GitHub
commit 6bf9012aa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)