forked from External/ergo
trim trailing space from commands
This commit is contained in:
parent
9aeb813cf5
commit
04f0b2c48d
3 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue