Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on DB with many columns? #6

Open
lnicola opened this issue Sep 4, 2021 · 1 comment
Open

Crash on DB with many columns? #6

lnicola opened this issue Sep 4, 2021 · 1 comment

Comments

@lnicola
Copy link
Contributor

@lnicola lnicola commented Sep 4, 2021

ts.sqlite.zip

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
Copy link
Owner

@mathaou mathaou commented Sep 4, 2021

Will test thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants