fix SHIFT-Insert on Windows command prompt#2381
Closed
mattn wants to merge 1 commit into
Closed
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2381 +/- ##
==========================================
+ Coverage 74.52% 74.54% +0.01%
==========================================
Files 91 91
Lines 132415 132422 +7
Branches 29083 30807 +1724
==========================================
+ Hits 98686 98717 +31
- Misses 33700 33705 +5
+ Partials 29 0 -29
Continue to review full report at Codecov.
|
Member
Author
|
Sorry, this break something. For example, |
Member
Author
|
@brammool This should not be merged since this PR is still wrong. As I mentioned in above, |
Member
Author
aeae41d to
80e142e
Compare
Member
Author
|
Fixed. I checked this on vim.exe with utf-8 and cp932. |
adizero
pushed a commit
to adizero/vim
that referenced
this pull request
May 19, 2018
Problem: Shift-Insert doesn't always work in MS-Windows console. Solution: Handle K_NUL differently. (Yasuhiro Matsumoto, closes vim#2381)
adizero
pushed a commit
to adizero/vim
that referenced
this pull request
May 19, 2018
Problem: Shift-Insert doesn't always work in MS-Windows console.
Solution: Handle K_NUL differently if the second character is more than one
byte. (Yasuhiro Matsumoto, closes vim#2381)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is fixing for a bug which vim.exe doesn't accept SHIFT-INSERT.
https://groups.google.com/forum/#!topic/vim_use/G1hB7FJbyAo/discussion
When patch 7.4.852 was included, combination of K_NUL & ANSI keys was not handled. And it was converted to unicode.
https://groups.google.com/forum/#!topic/vim_dev/Gu7pDIjS1UE/discussion
For example, following part use K_NUL & ANSI key to handle SHIFT-INSERT.
vim/src/os_win32.c
Lines 989 to 1013 in bdb8139
This change handle K_NUL in leading-character.