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

Starship multi-line prompt doubles up when line wrapping #16

Closed
imsnif opened this issue Oct 29, 2020 · 18 comments
Closed

Starship multi-line prompt doubles up when line wrapping #16

imsnif opened this issue Oct 29, 2020 · 18 comments
Assignees
Labels
compatibility Issues with VT/terminal compatibility suspected bug

Comments

@imsnif
Copy link
Member

imsnif commented Oct 29, 2020

I think this is an issue with the current implementation of line wrapping and should hopefully be fixed in the refactoring of the very same area in the code that I'm doing right now. @TheLostLambda, I'll ping you to give this another shot once it's done - thanks!

@imsnif imsnif added suspected bug compatibility Issues with VT/terminal compatibility labels Oct 29, 2020
@imsnif imsnif self-assigned this Oct 29, 2020
@imsnif
Copy link
Member Author

imsnif commented Oct 31, 2020

Hey @TheLostLambda - I just pushed some fixes to main that might solve this issue. Could you give it a go?

@TheLostLambda
Copy link
Member

Unfortunately I get a crash now 😢
image

@imsnif
Copy link
Member Author

imsnif commented Nov 1, 2020

Hum... do you think I can reproduce this easily somehow?

@TheLostLambda
Copy link
Member

Hmm, do you not have the same issue when working with the Starship prompt? I'm happy to do some more debugging later in the week (though the first part of it is quite busy!)

@imsnif
Copy link
Member Author

imsnif commented Nov 3, 2020

Tbh, I think I had some issue with installing starship and never came back to it. :)
So, @alekspickle said he'd try his hand at this.

@alekspickle
Copy link
Contributor

alekspickle commented Nov 3, 2020

I use konsole and I think I localized it with and without starship installed.
I presume it is not even starship related.
I basically just divided window with ctrl + N a few times and voila.

with starship
Screenshot_20201103_145919

without starship installed
Screenshot_20201103_150106

It definitely related with multiple vertical split.

@imsnif
Copy link
Member Author

imsnif commented Nov 3, 2020

I think these are actually 3 different errors, if I'm reading correctly? Original is "fragment out of bounds", second is "cursor out of bounds" and third is "unhandled csi", right?

@alekspickle
Copy link
Contributor

Yeah but I guess first two share at least a way to repoduce.
it is multiple vertical split

@imsnif
Copy link
Member Author

imsnif commented Nov 3, 2020

Yeah, for sure. I would guess that one has to do with us not limiting the width of new panes. If you feel like working on that, maybe we can open a new issue for it?

@imsnif
Copy link
Member Author

imsnif commented Nov 3, 2020

Opened a new issue here: #21

@imsnif
Copy link
Member Author

imsnif commented Nov 9, 2020

@TheLostLambda - I think I fixed this. The fix is in main, would you mind confirming when you have the chance?

@TheLostLambda
Copy link
Member

Hey @imsnif ! Did you fix the crash or the double-line bug? I'm pretty sure I'm still getting the crash on master 😢 I can help do some more proper debugging if you'd like?

@TheLostLambda
Copy link
Member

Both vertical and horizontal split are crashing for me at the moment with the same: thread 'screen' panicked at 'fragment out of bounds', src/terminal_pane/scroll.rs:62:80

@imsnif
Copy link
Member Author

imsnif commented Nov 9, 2020

Oi, no - I fixed the double line bug. :O
I must admit I forgot about the crash. :)

So, normal starship prompt works ok but when you split the screen it crashes, or?

@TheLostLambda
Copy link
Member

It seems to behave as long as I don't split anything or resize the window at least, yeah :)

@imsnif
Copy link
Member Author

imsnif commented Nov 9, 2020

Right! So let's open a new issue for that. I'll take a look at it. Would you mind doing it? I think it would be easier for you to describe how to reproduce it.

@TheLostLambda
Copy link
Member

No worries! Can do a bit later this evening :)

@imsnif
Copy link
Member Author

imsnif commented Nov 9, 2020

Awesome, thanks!

@imsnif imsnif closed this as completed Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Issues with VT/terminal compatibility suspected bug
Projects
None yet
Development

No branches or pull requests

3 participants