This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure selection collapses if user tries to replace with matching text
Summary: **Summary** This PR ensures that the selection is always collapsed for the cases where a user replaces the current selection with matching text. I admittedly didn't really dig into the original issue when fixing the previous crash :) **Test Plan** Small repro: 1. Type in "abc" 1. Select "c" from right-to-left 1. Type "c" 1. Select "c" from left-to-right 1. Type "c" Thanks to JLarky for bringing this to my intention! Closes #1661 Differential Revision: D7055502 fbshipit-source-id: ee4cf80d292ee715e40c017e4c6bd18f806b0e24
- Loading branch information
1 parent
04c2b9c
commit 084bdb6
Showing
3 changed files
with
45 additions
and
72 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
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