Skip to content

0.21.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@Rosemoe Rosemoe released this 08 Jan 13:52
· 434 commits to main since this release
de67648

This release includes bug fixes and little improvement as well as minor API changes.

Bugs fixed

  • incorrect horizontal scroll range when renderFunctionCharacter is on
  • TSQuery is not verified before making access to it
  • IME that relies on InputConnection#getSurroundingText gets invalid position description when maxIPCTextLength is exceeded
  • invalid composing text range can be set through EditorInputConnection#setComposingRegion
  • text becomes dirty when using old Gboard to delete characters fast
  • animated row background is on wrong layer
  • empty text is matched repeatly in regex, leading to OOM
  • StringIndex OutOfBoundsException in TextMateNewlineHandler (by @dingyi222666 )
  • CodeEditor#release does not detach EditorColorScheme
  • NPE when sending message in AsyncIncrementalAnalyzeManager
  • leaking thread by TextMateLanguage#updateLanguage
  • ReplaceAction can be added without its DeleteAction
  • nested undo/redo is possible
  • JavaTextTokenizer does not take down current token (#349)
  • AsyncIncrementalAnalyzeManager does not update the spans of last line being affected by insertion (#350)
  • Styles#eraseAllLineStyles raises npe when no line style is there

Improvments

  • better search experience, including support for whole word search, speed improvement of regex search, cyclic jumping and better scrolling strategy (#321)
  • performance improvement of tree-sitter predicates
  • avoid edge effect in CodeEditor#ensurePositionVisible
  • boost the speed of querying search results by binary search
  • show built-in text actions window on insert handle release
  • add touch slop before magnifier is triggered
  • add I18nConfig for application provided replacement string resources
  • add DirectAccessProps#clipboardTextLengthLimit and add tip when text is unable to be copied due to limit or TransactionTooLargeException
  • more exact position of built-in text actions window
  • editor uses global default color scheme on startup
  • enhanced function of DirectAccessProps#disallowSuggestions (tested on newest Gboard and Sogou Input for MIUI)
  • adapt view parameters for long screenshot in MIUI system
  • add two new accessibility actions since Android M

Updated API

  • new function Content#substring
  • new event PublishSearchResultEvent, which is called when search result is available in main thread or searching is stopped
  • new I18nConfig class for replacing string resources
  • new function add CodeEditor#isAntiWordBreaking
  • [BREAKING] new API in EditorColorScheme for global default theme. All newly-created editors use the global default theme. Your modifications to global default theme will reflect in those editors.
  • [BREAKING] CodeEditor#getScroller now has return type EditorScroller. Get the original OverScroller by EditorScroller#getImplScroller
  • [BREAKING] AsyncIncrementalAnalyzeManager and TsAnalyzeManager will receive thread interruption on exit