-
-
Notifications
You must be signed in to change notification settings - Fork 548
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
Paste content is truncated #92
Comments
I tested your code, yes, it seems only paste 11 chars. Btw, this is not related to your problem, but it's related to the input field too. I noticed that I can't move cursor to the middle of input. I guess this might be no arrow key binding was implemented yet to handle it. I am all right with it. |
To be honest, I noticed the pasting issue, too, and this seems to be a limitation of tcell. It's still on my todo list to open an issue there but I've been wanting to test if this happens on platforms other than macOS, too. What platforms have you noticed this on? (And yes, the |
Hi, I tested it on Ubuntu 16.04 running on VirtualBox, and it still happened. |
I tracked the code and found that tcell limit the event channel length in https://github.com/gdamore/tcell/blob/master/tscreen.go#L112. So I tried to change 10 to 20 and of course it worked. By the way, searching |
I'll close this issue as we'll be tracking it through (I know what it's like, though. A paid job always gets priority attention. It's no different here.) |
This issue was partially fixed in tcell but is still present on Windows (see gdamore/tcell#319).
Note that without getter for the Could be a temporary solution to SoMuchForSubtlety/f1viewer#74 @SoMuchForSubtlety. |
adapted from rivo/tview#92 undo once gdamore/tcell#319 is fixed
adapted from rivo/tview#92 undo once gdamore/tcell#319 is fixed
adapted from rivo/tview#92 undo once gdamore/tcell#319 is fixed
adapted from rivo/tview#92 undo once gdamore/tcell#319 is fixed closes #74
I wrote a simple demo, and run on my mac:
And I tried to copy
123456789123456789
and pasted it on input field, but only got12345678912
. So is it possible that the content is truncated in some where?The text was updated successfully, but these errors were encountered: