walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
587 stars 17 forks source link

Crash in 1.9.8 #105

Closed walles closed 1 year ago

walles commented 1 year ago

In a 136 columns by 65 lines terminal window, showing this file, pressing > to go to the end: android-lint-show-output.txt

Please post the following report at <https://github.com/walles/moar/issues>,
or e-mail it to johan.walles@gmail.com.

Version: v1.9.8
LANG   : sv_SE.UTF-8
TERM   : xterm-256color

GOOS    : darwin
GOARCH  : amd64
Compiler: gc
NumCPU  : 16

panic: lineNumberString <5_205 > longer than numberPrefixLength 4 [recovered]
    panic: lineNumberString <5_205 > longer than numberPrefixLength 4 [recovered]
    panic: lineNumberString <5_205 > longer than numberPrefixLength 4

goroutine 1 [running]:
main.main.func1()
    github.com/walles/moar/moar.go:248 +0x4d
panic({0x13a50e0, 0xc0001e0510})
    runtime/panic.go:884 +0x212
main.startPaging.func1()
    github.com/walles/moar/moar.go:420 +0x165
panic({0x13a50e0, 0xc0001e0510})
    runtime/panic.go:884 +0x212
github.com/walles/moar/m.createLinePrefix(0xc0000f1818, 0x4)
    github.com/walles/moar/m/screenLines.go:245 +0x2e5
github.com/walles/moar/m.(*Pager).decorateLine(0xc00021e000, 0x80?, {0x1747128, 0x0, 0x0})
    github.com/walles/moar/m/screenLines.go:195 +0x9f
github.com/walles/moar/m.(*Pager).renderLine(0xc00021e000, 0xd80?, 0x1455)
    github.com/walles/moar/m/screenLines.go:180 +0x1a6
github.com/walles/moar/m.(*Pager).scrollToEnd(0xc00021e000)
    github.com/walles/moar/m/scrollPosition.go:274 +0x5e
github.com/walles/moar/m.(*Pager).onRune(0xc00021e000, 0x0?)
    github.com/walles/moar/m/pager.go:320 +0x319
github.com/walles/moar/m.(*Pager).StartPaging(0xc00021e000, {0x1501e78?, 0xc0000a8480})
    github.com/walles/moar/m/pager.go:437 +0x645
main.startPaging(0x50?, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, {0x3c, {0x0, 0x0, ...}}, ...)
    github.com/walles/moar/moar.go:440 +0x1d4
main.main()
    github.com/walles/moar/moar.go:373 +0xf7d