Skip to content

Commit

Permalink
Fix commands not being auto-sent without the manual inclusion of a ne…
Browse files Browse the repository at this point in the history
…wline
  • Loading branch information
the-Jamz committed Jun 26, 2020
1 parent 5cb51c2 commit 3635bf8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub fn handle(command: String) -> String {
error!(format!("Couldn't open file: '{}'", words[2].trim()));
}

if !out.ends_with('\n') { out += "\n" }
return out;
} else {
println!("Insufficient arguments");
Expand Down

0 comments on commit 3635bf8

Please sign in to comment.