-
Notifications
You must be signed in to change notification settings - Fork 29
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
Running the fuzzy finder (tab
) within a session clears the screen and hides command history
#262
Comments
Hi @jrop, The second issue you describe seems strange. Are you invoking tab with multiple users? For security reasons, the daemon runs under the context of your local user account when you invoke tab. If you launch If you can reproduce this, could you upload the daemon logfile? On OSX it is at |
@austinjones I don't see anything abnormal in the logs:
|
Thanks for uploading the log! This rules out all the PTY connection and session init code. That looks like a typical retasked session (when you type I think somehow scrollback is not being delivered to your client when it is retasked. And when you press enter, it triggers new stdout data. This is starting to make sense... |
I think I have a fix for this! It looks like the cause was an integer underflow in the scrollback buffer code, which caused the buffer to believe that it was massive. The buffer would be emptied, and keep being emptied as data arrived. |
@austinjones awesome! I can't wait to try the fix out! (probably tomorrow) |
Ah! The cause here is typing Nothing is being lost. The fuzzy finder output is being saved to the session, and replayed when you reconnect. It includes escape sequences that clear the screen. Thus, no history. Quick workaround is to use |
I can see why this was so confusing. It looks identical to the ctrl-T fuzzy finder! What a bug... |
@austinjones Ah! Very interesting I should have probably just posted an asciinema, and all would have been clear right away. Thank you for your help in tracking this down! |
tab -z
), prompt is not shown until <ENTER> is pressed.tab
) within a session clears the screen and hides command history
I have my shell set up with the following configuration:
Relatively predictably (I'd say around 50% of the time), when I switch "tabs", the prompt does not display until I press "enter". Also, the terminal state is not fully restored reliably. That is, if I have typed a previous command, and I switch away from the tab, and then back, the output of the command I previously ran is not reliably shown.
The text was updated successfully, but these errors were encountered: