microsoft / microsoft/terminal

Unable to select text after exiting vim from git

Open
#12,077 12 comments 0 reactions 0 assignees View on GitHub
Area-Server Issue-Bug Priority-2 Product-Conhost
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

Unable to reproduce in wt

### Windows build number

10.0.19043.1415

### Other Software

[Git 2.34.1](https://github.com/git-for-windows/git/releases/download/v2.34.1.windows.1/Git-2.34.1-64-bit.exe)
[Vim 8.2.3951](https://github.com/vim/vim-win32-installer/releases/download/v8.2.3951/gvim_8.2.3951_x64.exe) (Note: Issue does not occur using vim bundled with git.)

### Steps to reproduce

1. Run `cmd` or `pwsh`
2. Observe that text can be selected with the mouse.
3. Run `git -c core.editor=C:\\Windows\\vim.bat config --system --edit`
4. Type `:q` to exit vim.
5. Observe that text can not be selected with the mouse.

### Expected Behavior

Text would be selectable, as it was before running git/vim.

### Actual Behavior

Text is not selectable without switching to mark mode.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue from cmd or pwsh using the external Vim command shown in step 3, then compare it with Vim bundled with Git. Trace how exiting Vim changes mouse selection and mark mode in the terminal; done means text is selectable with the mouse again without switching to mark mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, vim
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.