mirror of
https://github.com/hymkor/lispect.git
synced 2026-10-26 21:49:56 -04:00
Do not pop the line not terminating with \n
This commit is contained in:
1 parent
9bca54b14e
commit
0ae6dd9422
1 file changed
-2
@@ -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