-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix DECCRA when copying from a double-width line (#15026)
When a `DECCRA` operation is copying content that spans a double width line, it's possible that some range of the bounding rectangle will be off-screen, and that range is not supposed to be copied. However, the code checking for off-screen positions was using incorrect coordinates, so we would mistakenly copy content that shouldn't be copied, and drop content that should have been copied. This PR fixes that. ## References and Relevant Issues This was a regression introduced in PR #14650 when fixing an issue with horizontal scrolling of DBCS characters. ## Validation Steps Performed I manually verified this fixes the test case in #15019, and I've also added a unit test that replicates that case. Closes #15019
- Loading branch information
Showing
2 changed files
with
54 additions
and
1 deletion.
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