Skip to content

newTab with out-of-range profile index uses the default profile #11114

@KalleOlaviNiemitalo

Description

@KalleOlaviNiemitalo

Windows Terminal version (or Windows build number)

1.9.1942.0

Other Software

No response

Steps to reproduce

  1. Uninstall and reinstall Windows Terminal, to delete any custom settings.
  2. Start Windows Terminal. It opens a tab with the PowerShell profile.
  3. Open the new-tab dropdown list and note it lists five profiles
    Windows PowerShell Ctrl+Shift+1
    Command Prompt Ctrl+Shift+2
    PowerShell Ctrl+Shift+3
    Debian Ctrl+Shift+4
    Azure Cloud Shell Ctrl+Shift+5
  4. Close the new-tab dropdown list.
  5. Press Ctrl+Shift+9.

Expected Behavior

No tab opens, because there are fewer than nine active profiles. Perhaps it beeps instead.

Actual Behavior

A new tab opens with the PowerShell profile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-SettingsIssues related to settings and customizability, for console or terminalIssue-BugIt either shouldn't be doing this or needs an investigation.Priority-3A description (P3)Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions