summaryrefslogtreecommitdiff
path: root/ui/buffers_test.go
diff options
context:
space:
mode:
authorHubert Hirtz <hubert@hirtz.pm>2021-05-25 18:37:11 +0200
committerHubert Hirtz <hubert@hirtz.pm>2021-05-25 18:37:11 +0200
commit5cb1bbea9f3b94c23684ce8660d164f5bd13de98 (patch)
tree57383ac49aa8178489d7db36358e5bb8b0dd0229 /ui/buffers_test.go
parentcommands: use rawArgs on non-command (diff)
Fix ui tests
Diffstat (limited to 'ui/buffers_test.go')
-rw-r--r--ui/buffers_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/buffers_test.go b/ui/buffers_test.go
index dc1cf02..b78f8e9 100644
--- a/ui/buffers_test.go
+++ b/ui/buffers_test.go
@@ -6,7 +6,7 @@ import (
)
func assertSplitPoints(t *testing.T, body string, expected []point) {
- l := Line{body: body}
+ l := Line{Body: body}
l.computeSplitPoints()
if len(l.splitPoints) != len(expected) {
@@ -71,7 +71,7 @@ func showSplit(s string, nls []int) string {
}
func assertNewLines(t *testing.T, body string, width int, expected int) {
- l := Line{body: body}
+ l := Line{Body: body}
l.computeSplitPoints()
actual := l.NewLines(width)