Moves the document cursor while preserving valid editor caret positions.
Summary
Functions
Moves the cursor one move in the requested direction.
Returns the character immediately after a caret.
Places the cursor at the nearest valid caret position for the requested editor position.
Splits the character immediately before a caret from the preceding text.
Types
Functions
@spec move(Minga.Buffer.Document.t(), direction()) :: Minga.Buffer.Document.t()
Moves the cursor one move in the requested direction.
Returns the character immediately after a caret.
@spec place(Minga.Buffer.Document.t(), Minga.Buffer.Document.position()) :: Minga.Buffer.Document.t()
Places the cursor at the nearest valid caret position for the requested editor position.
Splits the character immediately before a caret from the preceding text.