mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-23 15:48:10 -07:00
trim trailing space from commands
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user