Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattscamp committed Aug 15, 2016
1 parent 9efe86b commit 55ebef3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/iota/chained_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ impl ChainedCmdBuilder {
if self.quit {
res.push(Command::exit_editor());
}
if res.is_empty() {
res.push(Command::noop());
}

return res;
}
Expand Down Expand Up @@ -155,6 +158,6 @@ impl<'a> ChainedCmdParser<'a> {
}
self.pos += 1;
}
str::from_utf8(&self.buffer[start..self.pos]).unwrap_or("")
str::from_utf8(&self.buffer[start..self.pos + 1]).unwrap_or("")
}
}

0 comments on commit 55ebef3

Please sign in to comment.