<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1750.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1750.0
</code></pre></div>
<p dir="auto">My font is <code class="notranslate">Input Mono</code>.</p>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Open Windows Terminal, PowerShell with this profile (it's basically posh-git and Chocolatey):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# poshgit...
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)

# Load posh-git module from current directory
Import-Module .\posh-git\posh-git

# If module is installed in a default location ($env:PSModulePath),
# use this instead (see about_Modules for more information):
# Import-Module posh-git


# Set up a simple prompt, adding the git prompt parts inside git repos
function global:prompt {
    $realLASTEXITCODE = $LASTEXITCODE

    Write-Host($pwd.ProviderPath) -nonewline

    Write-VcsStatus

    $global:LASTEXITCODE = $realLASTEXITCODE
    return &quot;&gt; &quot;
}

Pop-Location

Start-SshAgent -Quiet

# Chocolatey profile
$ChocolateyProfile = &quot;$env:ChocolateyInstall\helpers\chocolateyProfile.psm1&quot;
if (Test-Path($ChocolateyProfile)) {
  Import-Module &quot;$ChocolateyProfile&quot;
}

function semver { gitversion /output json /showvariable fullsemver }

$env:Path += (&quot;;&quot; + $PSScriptRoot)"><pre class="notranslate"><code class="notranslate"># poshgit...
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)

# Load posh-git module from current directory
Import-Module .\posh-git\posh-git

# If module is installed in a default location ($env:PSModulePath),
# use this instead (see about_Modules for more information):
# Import-Module posh-git


# Set up a simple prompt, adding the git prompt parts inside git repos
function global:prompt {
    $realLASTEXITCODE = $LASTEXITCODE

    Write-Host($pwd.ProviderPath) -nonewline

    Write-VcsStatus

    $global:LASTEXITCODE = $realLASTEXITCODE
    return "&gt; "
}

Pop-Location

Start-SshAgent -Quiet

# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
  Import-Module "$ChocolateyProfile"
}

function semver { gitversion /output json /showvariable fullsemver }

$env:Path += (";" + $PSScriptRoot)
</code></pre></div>
<ol dir="auto">
<li>Go to a git folder (such that the posh-git prompt appears)</li>
<li>Type a character</li>
<li>Type another character</li>
<li>Type yet another character (the suspense is killing me!)</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">The first two character stay as they were, and the third appears right next to them.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The first two characters move to the left one position, and the third appears next to them.  I.e. any commands 3 characters or greater get shifted to the left one position when the 3rd character is typed.</p>
<p dir="auto">This occurs for any 3rd character, including spaces.</p>
<p dir="auto">Have just found <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="442405820" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/635" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/635/hovercard" href="https://github.com/microsoft/terminal/issues/635">#635</a> ... it looks very similar but that talks about rendering characters the wrong width? That doesn't seem to be the case here?</p>
<ul dir="auto">
<li>
<p dir="auto">Your Windows build number:  (Type <code class="notranslate">ver</code> at a Windows Command Prompt)<br>
Windows 10 18362.30 (Enterprise)<br>
oh-my-posh 2.0.263 - <code class="notranslate">agnoster</code> theme<br>
posh-git 0.7.3<br>
Screenshots taken using Nerd Fonts <code class="notranslate">Inconsolata NF</code>, also tried using <code class="notranslate">FuraCode NF</code> with same results.<br>
I am using a build from master as of ~11am PDT today.</p>
</li>
<li>
<p dir="auto">What you're doing and what's happening: (Copy &amp; paste specific commands and their output, or include screen shots)<br>
<strong>Windows Terminal</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10136407/57481005-03527400-7256-11e9-995e-d1f91f5663a9.png"><img src="https://user-images.githubusercontent.com/10136407/57481005-03527400-7256-11e9-995e-d1f91f5663a9.png" alt="image" style="max-width: 100%;"></a><br>
<strong>Fluent Terminal</strong> (expected result)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10136407/57481119-41e82e80-7256-11e9-86bd-fbd21c09298c.png"><img src="https://user-images.githubusercontent.com/10136407/57481119-41e82e80-7256-11e9-86bd-fbd21c09298c.png" alt="image" style="max-width: 100%;"></a><br>
<strong>Windows Terminal</strong> (oh-my-posh disabled, posh-git enabled)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10136407/57481689-80321d80-7257-11e9-84d6-04c28a97733e.png"><img src="https://user-images.githubusercontent.com/10136407/57481689-80321d80-7257-11e9-84d6-04c28a97733e.png" alt="image" style="max-width: 100%;"></a></p>
</li>
</ul>
<p dir="auto"><strong>Windows Terminal</strong> with agnoster - the problematic theme<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10136407/57482363-4c57f780-7259-11e9-91da-2406dff60231.png"><img src="https://user-images.githubusercontent.com/10136407/57482363-4c57f780-7259-11e9-91da-2406dff60231.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">In this case, I typed <code class="notranslate">test</code> then backspaced the 4 characters and typed <code class="notranslate">cd</code>.  The <code class="notranslate">e</code> from <code class="notranslate">test</code> is still rendered in its original position, while the other characters erased as expected.</p>
<p dir="auto">Typing <code class="notranslate">tes</code>, the <code class="notranslate">te</code> is rendered in its original position and moved position:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10136407/57482444-80331d00-7259-11e9-9c49-76aaf5540600.png"><img src="https://user-images.githubusercontent.com/10136407/57482444-80331d00-7259-11e9-9c49-76aaf5540600.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Typing further works as expected, removing those characters from the screen:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10136407/57482498-9f31af00-7259-11e9-8dc4-33c87dbab5c2.png"><img src="https://user-images.githubusercontent.com/10136407/57482498-9f31af00-7259-11e9-8dc4-33c87dbab5c2.png" alt="image" style="max-width: 100%;"></a></p>
<ul dir="auto">
<li>What's wrong / what should be happening instead:<br>
Typing the third character should not cause the command to move its rendering (see <code class="notranslate">cd ~</code> and <code class="notranslate">Get-Command</code> in first screenshot - first character gets covered, no issues with one or two character commands.</li>
</ul>
<p dir="auto">There is no theme with ohmyposh disabled (poshgit still enabled), or with different ohmyposh themes including the others that render those arrows. Only agnoster causes this moving to occur.</p>