fix: wrong selection contents retrieved in column editing mode.

This commit is contained in:
Roy Qu 2024-03-13 17:03:32 +08:00
parent 2c29b64d97
commit 19eeb5a1f8
1 changed files with 1 additions and 1 deletions

View File

@ -4584,7 +4584,7 @@ QString QSynEdit::selText() const
QString result;
for (int i = firstLine; i <= lastLine; i++) {
int l = xposToGlyphStartChar(i,xFrom);
int r = xposToGlyphStartChar(i,xTo)+1;
int r = xposToGlyphStartChar(i,xTo);
QString s = mDocument->getLine(i-1);
result += s.mid(l-1,r-l);
if (i<lastLine)