-
Notifications
You must be signed in to change notification settings - Fork 689
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 when copying selection that runs to end of window #1
Comments
While trying to reproduce this I figured out another crash, its odd, digging into it now:
I added some logging and the char its getting is a |
Fixed my issue, now looking into yours: 9d26ab2 (Note: this case should be tested, but we're going to have to redo all the resize stuff for reflow and I'm going to get to that Soon(tm) so... ignoring) |
Reproduced, here is the stack trace:
|
Oh fun, I never thought about this but the mouse Praise assertions validating our assumptions and finding something that breaks em. |
π π Hi! Nice terminal emulator you've got here. β¨ I've broken it for you. π
Steps to reproduce (on darwin/arm64 but I'm betting it happens everywhere):
Expect:
Observe:
Stepping around with a debugger, it looks like this assertion is failing, because
sel.x
actually does have a value larger than the number of columns in the window.I'm only just getting the hang of the codebase so I'm not sure if this is a bug in the selection capture code or just a quirk that we need to handle by "truncating" the selection to the end of the window.
The text was updated successfully, but these errors were encountered: