fix: can't redo input char

This commit is contained in:
Roy Qu 2024-02-25 10:18:09 +08:00
parent 3b28894d51
commit effecc80f9
1 changed files with 1 additions and 1 deletions

View File

@ -4611,7 +4611,7 @@ QStringList QSynEdit::getContent(BufferCoord startPos, BufferCoord endPos, Selec
switch(mode) {
case SelectionMode::Normal:{
int chFrom = startPos.ch;
int chTo = startPos.ch;
int chTo = endPos.ch;
PCodeFoldingRange foldRange = foldStartAtLine(endPos.line);
QString s = mDocument->getLine(lastLine);
if ((foldRange) && foldRange->collapsed && chTo>s.length()) {