Skip to content

Commit

Permalink
Github Issue #117: Fixing the correct character position of the textc…
Browse files Browse the repository at this point in the history
…ursor in the textedit
  • Loading branch information
AngryFender committed Jan 5, 2024
1 parent cb6482a commit ba37df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ void MkEdit::diableMarkdown_internal()
void MkEdit::cursorPositionChangedHandle()
{
int currentBlockNumber = textCursor().blockNumber();
int currentCharacterNumber = textCursor().positionInBlock() + currentBlockNumber;
int currentCharacterNumber = textCursor().position();

if(savedCharacterNumber != currentCharacterNumber){
savedCharacterNumber = currentCharacterNumber;
Expand Down

0 comments on commit ba37df9

Please sign in to comment.