-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix line drawing during IME operations. (#6223)
## Summary of the Pull Request Restores proper line drawing during IME operations in `conhost` ## PR Checklist * [x] Closes #803 * [x] I work here. * [x] Tested manually. * [x] Check the performance of this and see if it's worse-enough to merit a more confusing algorithm. It was worse for the majority case so I scoped it. * [x] No doc, it should have worked this way. * [x] Am core contributor. ## Detailed Description of the Pull Request / Additional comments - Changed `ConsoleImeInfo::s_ConvertToCells` to be less confusing. It's doing about the same thing, but it's way easier to read now and the compiler/linker/optimizer should just be the same. - Edited `Renderer::_PaintBufferOutputHelper` to check each attribute for line drawing characters as the right half of a two-col character might have different line drawing characters than the left-half. ## Validation Steps Performed - [x] Manual operation of IME in conhost with Japanese IME. - [x] Manual operation of IME in conhost with Chinese IME. - [x] Manual operation of IME in conhost with Chinese (Traditional) IME. - [x] Manual operation of IME in conhost with and Korean IME. - @leonMSFT says Korean doesn't work this way. But Korean is broken worse in that it's not showing suggestions at all. Filing new bug. #6227 - [x] Validated against API-filling calls through `SetConsoleTextAttribute` per @j4james's sample code
- Loading branch information
Showing
2 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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