Crash on DB with many columns?
lnicola opened this issue · 2 comments
lnicola commented
If I open this file and press down arrow twice I get a crash:
panic: runtime error: slice bounds out of range [:-1]
goroutine 43 [running]:
sqlite3-viewer/viewer.TruncateIfApplicable(0xc000896340, {0xc00001e680, 0x7})
~/go/tuitty/viewer/util.go:99 +0x192
sqlite3-viewer/viewer.TuiModel.View.func2(0xc00059c070)
~/go/tuitty/viewer/viewer.go:121 +0xae5
created by sqlite3-viewer/viewer.TuiModel.View
~/go/tuitty/viewer/viewer.go:106 +0x272
mathaou commented
Will test thank you!