microsoft / microsoft/terminal

shift+left at the end of a line in the console selects a non existent character

Open
#4,879 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Input Issue-Bug Priority-3 Product-Conhost
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

Environment

19582 rs_prerelease

Steps to reproduce

open cmd
type: type f:\mx\public\x86fre.nocil\onecore\external\sdk\inc\crt\direct.h

Expected behavior

shift+left should select the h, and ctrl+shift+left should select the whole path

Actual behavior

  • shift+left selects the empty character after the h
  • ctrl+shift+left selects the empty character after the h. A 2nd ctrl+shift+left selects the path

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the behavior in the Windows console with the path and Shift+Left/Ctrl+Shift+Left combinations described in the issue. Trace the console's keyboard-selection handling, then verify that Shift+Left selects the final h and Ctrl+Shift+Left selects the whole path on the first press.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.