1
0
Fork 0
forked from External/ergo

trim trailing space from commands

This commit is contained in:
Jeremy Latt 2014-02-26 16:17:44 -08:00
parent 9aeb813cf5
commit 04f0b2c48d
3 changed files with 5 additions and 3 deletions

View file

@ -53,7 +53,7 @@ func (socket *Socket) readLines(commands chan<- editableCommand) {
if socket.isError(err, R) {
break
}
line = strings.TrimRight(line, "\r\n")
line = strings.TrimRight(line, CRLF)
if len(line) == 0 {
continue
}