Quellcode durchsuchen

fix outline navigation in edit mode

Jump to EndOfBlock instead of EndOfLine.

Signed-off-by: Le Tan <[email protected]>
Le Tan vor 9 Jahren
Ursprung
Commit
eee2d5342a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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();