mirror of
https://github.com/hymkor/lispect.git
synced 2026-08-31 22:37:03 -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')
|
newLinePos := strings.LastIndexByte(W.lastline, '\n')
|
||||||
if newLinePos >= 0 {
|
if newLinePos >= 0 {
|
||||||
W.lastline = W.lastline[newLinePos+1:]
|
W.lastline = W.lastline[newLinePos+1:]
|
||||||
} else {
|
|
||||||
W.lastline = ""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user