-
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
Subshell executions have wrong number of lines #56
Comments
What do you mean “default to a certain number of lines” ? I'm on Windows and can't reproduce this, neither on NuShell / PowerShell / Batch |
Thats very weird since we just write lines to terminal then clear the last lines on refresh Without more info it would be really hard for me to fix this (since I can't reproduce this on my NuShell terminal) ls-interactive/src/structs/prompt_renderer.rs Lines 253 to 263 in f82e0d0
ls-interactive/src/structs/prompt_renderer.rs Lines 303 to 308 in f82e0d0
|
I have yet to learn Rust but I have good programming experience, I'll try to clone and setup a dev environment and see if I can whip a PR up. Disclaimer, I'm not fully taking responsibility for this bugfix and cannot guarantee success 😅 |
Interesting. I tried investigating issues in my setup as well but couldn't find anything. I'll keep searching in that space as well. |
Thank you for being patient! Unfortunately I couldn't find the time I would need to get around in Rust. However, I tested an interactive command substitution in Python and can confirm that the issue doesn't occur there. I'm able to get the correct layout with no difference in my environment other than just running |
I've personally tested Bash + Batch + Powershell + Fish + NuShell (Gnome terminal on Ubuntu + Windows Terminal + WSL) So my guess is that there is some sort of weird conflict in your bash settings |
I'm not going to chase this any further I think. I'll let you figure out if you want to keep this open or close it as could not reproduce. Thank you for your time! |
Running
ls-interactive
in a subshell causes it to default to a certain number of lines.Repro
cd $(ls-interactive)
Expected
ls-interactive
fits to the terminal even when invoked from within a subshell.The text was updated successfully, but these errors were encountered: