Horizontal Pane Splitting puts cursor on incorrect line #7342

Closed
opened 2026-01-31 01:01:28 +00:00 by claunia · 8 comments
Owner

Originally created by @spetz83 on GitHub (Apr 9, 2020).

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
10.0.19041.0
Windows Terminal version (if applicable):
0.10.781.0
Any other software?
N/A

Steps to reproduce

  • Open Windows Terminal
  • Trigger Horizontal pane split

Expected behavior

I expect the pane to be split horizontally with the cursor on the same line as the current directory prompt similar to below screen shot.
image

Actual behavior

When you do the first horizontal pane split the cursor jumps down a line in the newly opened pane. However, if you split horizontally a second time, the second pane cursor appears correctly. See below gif.
terminal

A vertical pane split does not exhibit the same behavior.

Originally created by @spetz83 on GitHub (Apr 9, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] 10.0.19041.0 Windows Terminal version (if applicable): 0.10.781.0 Any other software? N/A ``` # Steps to reproduce - Open Windows Terminal - Trigger Horizontal pane split <!-- A description of how to trigger this bug. --> # Expected behavior I expect the pane to be split horizontally with the cursor on the same line as the current directory prompt similar to below screen shot. ![image](https://user-images.githubusercontent.com/291664/78909781-9fc65d00-7a49-11ea-8209-2866a79da566.png) <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> # Actual behavior When you do the first horizontal pane split the cursor jumps down a line in the newly opened pane. However, if you split horizontally a second time, the second pane cursor appears correctly. See below gif. ![terminal](https://user-images.githubusercontent.com/291664/78910045-f2a01480-7a49-11ea-8ae5-e1bee7f58353.gif) A vertical pane split does not exhibit the same behavior. <!-- What's actually happening? -->
Author
Owner

@zadjii-msft commented on GitHub (Apr 9, 2020):

GAH that's not great.

Could you share the config for whatever shell you're using? I'm betting that this is due to that first line that's getting printed in your prompt. Clearly the right text is in the buffer (because the third pane you create refreshes the contents of the second pane to be displayed correctly), but maybe we missed a frame or something.

I'd also bet that #5181 either made this way better or worse (see #5291).

@zadjii-msft commented on GitHub (Apr 9, 2020): GAH that's not great. Could you share the config for whatever shell you're using? I'm betting that this is due to that first line that's getting printed in your prompt. Clearly the right text is in the buffer (because the third pane you create refreshes the contents of the second pane to be displayed correctly), but maybe we missed a frame or something. I'd also bet that #5181 either made this way better or worse (see #5291).
Author
Owner

@spetz83 commented on GitHub (Apr 9, 2020):

So, I'm using ZSH, so do you want the zshrc file I have? I've been using the same zshrc file for quite a while, this only started happening in the last month or 2.

@spetz83 commented on GitHub (Apr 9, 2020): So, I'm using ZSH, so do you want the zshrc file I have? I've been using the same zshrc file for quite a while, this only started happening in the last month or 2.
Author
Owner

@spetz83 commented on GitHub (Apr 9, 2020):

I should clarify, ZSH using Oh My ZSH.

@spetz83 commented on GitHub (Apr 9, 2020): I should clarify, ZSH using Oh My ZSH.
Author
Owner

@spetz83 commented on GitHub (Apr 9, 2020):

zshrc-bak.txt

@spetz83 commented on GitHub (Apr 9, 2020): [zshrc-bak.txt](https://github.com/microsoft/terminal/files/4457880/zshrc-bak.txt)
Author
Owner

@zadjii-msft commented on GitHub (Apr 9, 2020):

Yikes okay, I'm not seeing this on my build with the same .zshrc, but it's entirely possible that the bits from #5181 fixed this, making it hard for me to repro. I'm pulling a 0.10 build now to check if that build will repro this.

@zadjii-msft commented on GitHub (Apr 9, 2020): Yikes okay, I'm not seeing this on my build with the same `.zshrc`, but it's entirely possible that the bits from #5181 fixed this, making it hard for me to repro. I'm pulling a 0.10 build now to check if that build will repro this.
Author
Owner

@zadjii-msft commented on GitHub (Apr 10, 2020):

Okay I unfortunately can't get this to repro on 0.10.781 either, even with the same zsh config. I'm really hoping that this is just going to go away in 0.11, but since I can't be sure, I think I'm just going to have to stick it in the 1.x milestone.

@zadjii-msft commented on GitHub (Apr 10, 2020): Okay I unfortunately can't get this to repro on 0.10.781 either, even with the same zsh config. I'm _really_ hoping that this is just going to go away in 0.11, but since I can't be sure, I think I'm just going to have to stick it in the 1.x milestone.
Author
Owner

@spetz83 commented on GitHub (Apr 27, 2020):

@zadjii-msft Wanted to let you know. I updated to 0.11.1121.0 and I can no longer replicate this issue. Everything seems to be working correctly again. Thanks for looking into this.

@spetz83 commented on GitHub (Apr 27, 2020): @zadjii-msft Wanted to let you know. I updated to 0.11.1121.0 and I can no longer replicate this issue. Everything seems to be working correctly again. Thanks for looking into this.
Author
Owner

@zadjii-msft commented on GitHub (Apr 27, 2020):

I'm glad to hear it! Thanks for following up on this thread 😄

@zadjii-msft commented on GitHub (Apr 27, 2020): I'm glad to hear it! Thanks for following up on this thread 😄
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7342