fix assignment mismatch

This commit is contained in:
Denis Bilenko 2024-12-09 14:41:30 +01:00
parent 0c5fa24fd7
commit a05f0c0176
1 changed files with 2 additions and 2 deletions

View File

@ -200,11 +200,11 @@ func (l *Logger) writeAppend(event Event) {
func (l *Logger) writeInplace(event Event) { func (l *Logger) writeInplace(event Event) {
if l.isFirstEvent { if l.isFirstEvent {
// save cursor location // save cursor location
_ = l.Writer.Write([]byte("\033[s")) _, _ = l.Writer.Write([]byte("\033[s"))
} }
// move cursor to saved location // move cursor to saved location
_ = l.Writer.Write([]byte("\033[u")) _, _ = l.Writer.Write([]byte("\033[u"))
// clear from cursor to end of screen // clear from cursor to end of screen
_, _ = l.Writer.Write([]byte("\033[0J")) _, _ = l.Writer.Write([]byte("\033[0J"))