Set cursor on proper line.

This commit is contained in:
Bartosz Taudul 2018-08-17 15:21:37 +02:00
parent c503e3760c
commit 5dc3d73ad6

View File

@ -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;
}