-
Notifications
You must be signed in to change notification settings - Fork 779
Fix remaining TextView issues #4987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
041cfcf
Fixes #4986. Navigating with Viewport.Y greater than zero will cause …
BDisp ce2ce48
Fixes #4990. Navigating with Viewport.X greater than zero will cause …
BDisp 6ca8e82
Merge branch 'develop' into textview-remaining-issues-fix
tig e9f3cd8
Merge branch 'develop' into textview-remaining-issues-fix
tig 0f27375
Fixes #4994 - Navigating left and right while holding down the Ctrl k…
BDisp 8074d0f
Merge branch 'develop' into textview-remaining-issues-fix
BDisp 769edb0
Merge branch 'develop' into textview-remaining-issues-fix
BDisp ce4645e
Merge branch 'develop' into textview-remaining-issues-fix
tig 14afefc
Fixes #4998. TextView.UpdateContentSize isn't working correctly on in…
BDisp 3ca7567
Fixes #4999. TextView with hidden cursor due scrolling pressing any C…
BDisp 2496629
Update Tests/UnitTestsParallelizable/Views/TextView.NavigationTests.cs
tig f6f0164
Merge branch 'develop' into textview-remaining-issues-fix
BDisp 40d4147
Merge branch 'develop' into textview-remaining-issues-fix
BDisp c336758
Fixes #4891. DoDrawComplete should ignore scrolled Viewport.Location …
BDisp 79c079c
Merge branch 'develop' into textview-remaining-issues-fix
tig 2e3a3d9
Merge branch 'develop' into textview-remaining-issues-fix
BDisp 5dc6b6b
Clarify comment related to deleted
BDisp 97d63ff
Fix MoveUp() and add more unit tests
BDisp 2d304d1
Test that proves despite does not change viewport position but does s…
BDisp daba04a
Fix MoveLeft method and add a test
BDisp 3b57826
Fix MoveWordLeft and add unit test
BDisp ae4e7c7
Fix MoveWordRight and add unit test
BDisp 0dbccbc
Simplify MoveRight code
BDisp b552436
Fix DeleteCharLeft invoke ContentChanged twice
BDisp 767020d
Fix ShouldInvalidateMaxWidthCache to use full size
BDisp ac3dbc4
Remove unnecessary LINQ in _cachedMaxWidthPerLine
BDisp ab0ece7
Move ShouldInvalidateMaxWidthCache tests
BDisp cecd5b6
Fix ArgumentOutOfRangeException on DeleteTextLeft
BDisp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MoveRight() adds a visibility check
(Viewport.X > 0 && CurrentColumn < Viewport.X), butViewport.Xis a display-column offset whileCurrentColumnis a cell index. This will break with tabs/wide graphemes and can mark the cursor as "left of viewport" when it isn't. Use the cursor's display column (viaTextModel.CursorColumn(...)) for comparisons againstViewport.X.