Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed: Position of caret now only consider visible characters
CaretPos returns the location of the cursor on the line Y and position X, counting both visible and hidden characters. Hidden are mainly those corresponding to hyperlinks (HYPERLINK "<URL>"), although there may also be some hidden characters used by KeyNote to identify images or set bookmarks for the location of KNT Links. The way RichEdit manages selection of hyperlinks does not make it easy to obtain the visible number of characters from the left of current line to current position. KeyNote now calculates the visible value, optimizing the way it is done so to avoid any slight flickering that could be noticeable in certain parts of the editor. Ref: #672
- Loading branch information
Showing
3 changed files
with
103 additions
and
9 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