From 5dc3d73ad623b682b86144c5bcae96e2baaa76b2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 17 Aug 2018 15:21:37 +0200 Subject: [PATCH] Set cursor on proper line. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index c0b3b061..db36e479 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -415,7 +415,7 @@ void View::SetTextEditorFile( const char* fileName, int line ) fclose( f ); m_textEditor->SetText( data ); - m_textEditor->SetCursorPosition( TextEditor::Coordinates( line, 0 ) ); + m_textEditor->SetCursorPosition( TextEditor::Coordinates( line-1, 0 ) ); m_textEditorFile = fileName; }