commit | 8cc2dd9219b710de87f01051de0043cbb61ab89e | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Mon Oct 25 19:49:41 2021 +0200 |
committer | Akron <nils@diewald-online.de> | Mon Oct 25 19:49:41 2021 +0200 |
tree | a330ed77575031c97f3ee83faaddc8d14654d14e | |
parent | 4f6b28c444b542b712dd0f5cd793b0448b688aa2 [diff] [blame] |
Fix buffer rewind at end of transmission Change-Id: I5abb90153931574acf0df5e95e5b286c883539e5
diff --git a/token_writer.go b/token_writer.go index d75b261..9f4088a 100644 --- a/token_writer.go +++ b/token_writer.go
@@ -48,6 +48,7 @@ // TODO: // Store in []uint16 // and write to string + posC += offset pos = append(pos, posC) posC += len(buf) - offset @@ -79,7 +80,7 @@ } writer.WriteRune('\n') - posC = 0 - offset + posC = 0 pos = pos[:0] } } else {