-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Selection is not pinned to text #9
Comments
This seems to work correctly now, I can't reproduce it anymore. Did you do some intentional changes that might have affected this? Perhaps the wrongly exported variables? It must have been something since friday, because I ran in to it at work. |
I found one corner case, where this still happens: If I open a file in For comparison, libVTE keeps the selection "pinned to text" when scrolling down, but it disappears immediately on scroll up, probably because whole screen is redrawn. This behavior makes little more sense to me. |
I was going to comment on this... Yes, this is a problem and I know the reason and I'll try to come up with a solution ASAP. The reason is TerminalCtrl keeps track of the row/col (nothing unique or updated). And that is the reason of the faulty behavior. When the screen scrolls or changes it does not update accordingly. That needs to be changed. |
I've finally figured out why it suddenly started working for me 🙁 It mostly works fine if I try it on my local machine. But for work I use profile which runs |
It can depend on many things on SSH but the reason for the TerminalCtrl's behaviour is the same: On default buffer with scrollback (history) buffer on, when the buffer hits it s upper limit (default is1024) it starts to drop lines and this invalidates the position (anchor) of the selection. It needs to be updated accordingly (this is also how I fixed the finder's highlight position). On other scenarios (alternate buffer and/or raw mode) apps can overwrite the existing lines. In that case the lines are invalidated, thus we need to cancel the selection. The fix is in the queue but not pushed yet. |
One solution could to be to add a selection attribute to the cells. This way, not only the selection will be permanent, but also the mutating operations (clear, erase) can invalidate the selected section automatically. |
When I select some text in the terminal, the selection stays in the same area when the buffer scrolls.
It doesn't happen when I scroll using mouse wheel, only when new text is added to the buffer.
I'd expect the selection either to disappear when the buffer moves or to keep moving with it. Current situation is that I select something and there is a chance that it will move away before I can copy it. And even worse, I might copy something completely different than I wanted.
Simple steps to reproduce: Select something, then press
Enter
few times.The text was updated successfully, but these errors were encountered: