-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a base motion class in which cursor and caret extend. The difference between the two classes: * Caret's can never have a position that at the very end of the string * Whenever we do get a styling for caret block, that logic can be placed in their respective classes. Another factor for the need to refactor was it was getting cumbersome to manipulate motions. With this refactor, motions are now composable. For instance, `new Cursor().left().up().down().move();` It will only be until the `move()` will it actually move the cursor.
- Loading branch information
Showing
11 changed files
with
480 additions
and
513 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.