1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-28 13:48:51 +08:00

Include newline when printing cell differences.

This commit is contained in:
Jakub Sobon 2019-01-20 16:21:16 -05:00
parent 486172e4f9
commit 20c31cb800
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7

View File

@ -100,7 +100,7 @@ func Diff(want, got *Terminal) string {
for col := 0; col < size.X; col++ {
got := got.BackBuffer()[col][row].Rune
want := want.BackBuffer()[col][row].Rune
b.WriteString(fmt.Sprintf(" cell(%v, %v) => got '%c' (rune %d), want '%c' (rune %d)", col, row, got, got, want, want))
b.WriteString(fmt.Sprintf(" cell(%v, %v) => got '%c' (rune %d), want '%c' (rune %d)\n", col, row, got, got, want, want))
}
}
}