mirror of
https://github.com/hymkor/lispect.git
synced 2026-08-27 20:36:34 -04:00
Do not pop the line not terminating with \n
This commit is contained in:
@@ -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 = ""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user