mirror of
https://github.com/walles/moar.git
synced 2024-09-11 12:15:43 +03:00
Fix speling error
This commit is contained in:
parent
b4541db00f
commit
5432ff567a
2
moar.go
2
moar.go
@ -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)
|
||||
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user