Do not pop the line not terminating with \n

This commit is contained in:
HAYAMA_Kaoru committed 2024-11-29 13:06:54 +09:00
1 parent 9bca54b14e
commit 0ae6dd9422
1 file changed
-2
-2
View File
@@ -40,8 +40,6 @@ func (W *Watcher) updateLastLine() {
newLinePos := strings.LastIndexByte(W.lastline, '\n')
if newLinePos >= 0 {
W.lastline = W.lastline[newLinePos+1:]
} else {
W.lastline = ""
}
}