Skip to content

Conversation

@PasiSalenius
Copy link
Contributor

When editor was set to CRLF line endings, and pasted text already contained CRLF endings, this function would not apply line ending changes correctly. Here we first split the text separating by any kind of new line character and then join them with the correct line ending.

…c with actual first responder status. Make it a computed property based on window's firstResponder variable instead. Set needs layout flag whenever becoming or resigning first responder. Update TextView isEditing status whenever isEditable changes and TextView is already first responder.
…t is available everywhere. Move updating editing state when editable status changes to TextViewController for consistency.
…earch highlights to 200. Check current search operation state in main queue. Refresh find panel state when text changes by editing and when setState is used to update text.
…he panel can remove highlights from text view.
…nsertion to highlighted ranges which has a side effect.
…ted range. Increase maximum count of visible highlights to 1000.
# Conflicts:
#	Example/Example.xcodeproj/project.pbxproj
#	Example/iOSExample/Base.lproj/LaunchScreen.storyboard
#	Example/iOSExample/Main/MainViewController.swift
#	Package.resolved
#	Package.swift
#	Sources/Runestone/Library/L10n.swift
#	Sources/Runestone/TextView/Appearance/DefaultTheme.swift
#	Sources/Runestone/TextView/Appearance/Theme.swift
#	Sources/Runestone/TextView/Core/TextInputStringTokenizer.swift
#	Sources/Runestone/TextView/Core/TextInputView.swift
#	Sources/Runestone/TextView/Core/TextView.swift
#	Sources/Runestone/TextView/PageGuide/PageGuideView.swift
#	Tests/RunestoneTests/iOS/TextInputStringTokenizerTests.swift
#	UITests/HostUITests/KoreanInputTests.swift
#	UITests/HostUITests/XCUIApplication+Helpers.swift
Allow selection in non-editable text views on iOS. Update TextInputStringTokenizer. Add back text selection workarounds. Add character method to StringView. Remove lengthOfInitallyLongestLine from text views. Remove unnecessary files.
…o just search highlights. Add text color to highlighted ranges and use it when rendering text. Use corner radius for search highlights.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants