1
1
mirror of https://github.com/walles/moar.git synced 2024-11-22 11:45:50 +03:00

Fix speling error

This commit is contained in:
Johan Walles 2023-03-02 07:06:10 +01:00
parent b4541db00f
commit 5432ff567a
2 changed files with 3 additions and 2 deletions

View File

@ -240,7 +240,7 @@ func main() {
scrollLeftHint := flagSetFunc(flagSet, "scroll-left-hint",
twin.NewCell('<', twin.StyleDefault.WithAttr(twin.AttrReverse)),
"Shown when view can scroll left. One character with optional ANSI highlighting.", parseScrollHint)
scrollRightHint := flagSetFunc(flagSet, "scroll-righte-hint",
scrollRightHint := flagSetFunc(flagSet, "scroll-right-hint",
twin.NewCell('>', twin.StyleDefault.WithAttr(twin.AttrReverse)),
"Shown when view can scroll right. One character with optional ANSI highlighting.", parseScrollHint)

View File

@ -8,7 +8,8 @@ import (
)
func TestParseScrollHint(t *testing.T) {
token := parseScrollHint("ESC[7m>", nil)
token, err := parseScrollHint("ESC[7m>")
assert.NilError(t, err)
assert.Equal(t, token, twin.Cell{
Rune: '>',
Style: twin.StyleDefault.WithAttr(twin.AttrReverse),