Fix: Editor commands should be split at whitespace
This fixes the following problem: If the editor setting was "vim " instead of "vim", the editor was called with `"vim" " "`, which resulted in unexpected behaviour. The patch fixes this.
This commit is contained in:
parent
8b29e9d748
commit
c5c9c7b9ba
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ impl<'a> Runtime<'a> {
|
|||
.ok_or_else(|| RuntimeErrorKind::IOError.into())
|
||||
.map_dbg(|s| format!("Editing with '{}'", s))
|
||||
.and_then(|s| {
|
||||
let mut split = s.split(" ");
|
||||
let mut split = s.split_whitespace();
|
||||
let command = split.next();
|
||||
if command.is_none() {
|
||||
return Ok(None)
|
||||
|
|
Loading…
Reference in a new issue