1
0
Эх сурвалжийг харах

fix outline navigation in edit mode

Jump to EndOfBlock instead of EndOfLine.

Signed-off-by: Le Tan <[email protected]>
Le Tan 9 жил өмнө
parent
commit
eee2d5342a
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/vedit.cpp

+ 1 - 1
src/vedit.cpp

@@ -199,7 +199,7 @@ void VEdit::scrollToLine(int lineNumber)
     // Move the cursor to the end first
     moveCursor(QTextCursor::End);
     QTextCursor cursor(document()->findBlockByLineNumber(lineNumber));
-    cursor.movePosition(QTextCursor::EndOfLine);
+    cursor.movePosition(QTextCursor::EndOfBlock);
     setTextCursor(cursor);
 
     setFocus();