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
Ctrl + A on code in maximized window causes Exception #3750
Comments
@mavaddat I cannot reproduce the issue locally with your repro step: The only difference that I can tell by looking at your screenshot is the prompts (both the regular prompt and the continuation prompt). Can you please come up with a repro with simpler prompts, so that I can reproduce the issue locally? |
You are not using Also, I cannot reproduce locally even with the JSON setting you shared, and I'm using the same version of Windows Terminal preview. Can you paste using |
Nice catch! I see that the issue does not arise in You are right that I was pasting with right-click. I see the issue persists with Ctrl+v though if I am using my custom prompts. |
Can you share your custom prompts here (both the |
Sure, it is the standard setup for This is my oh-my-posh config: JSON output of
|
I am still seeing this exception, BTW. Environment
Last 200 Keys:
Exception
|
Prerequisites
Exception report
Screenshot
Environment data
Window size
Before maximizing
After maximizing
Steps to reproduce
Expected behavior
The original issue is that when I maximize, the text as displayed in the window is not the position of the editable underlying command text. That is, the maximize command isn't able to correctly reflow the command at the command prompt to anticipate where it is in the maximized context.
This is evident by the fact that moving the cursor around does not land in the correct place corresponding to the text as rendered. (I.e., the cursor does not edit the shown text and moving the cursor around doesn't follow the text as shown.)
To mitigate, I do a select all Ctrl + A to force the PowerShell to recalculate the text reflow. The highlighting will show be the boundaries of the text and allow me to understand how the text has moved.
Actual behavior
There is an exception thrown.
The text was updated successfully, but these errors were encountered: