forked from qt-creator/qt-creator
		
	show the visual column in the line-column-label (makes a difference
when using tabs). Column counting still starts with 1.
This commit is contained in:
		| @@ -4203,8 +4203,8 @@ void BaseTextEditorEditable::updateCursorPosition() | ||||
|     const QTextCursor cursor = e->textCursor(); | ||||
|     const QTextBlock block = cursor.block(); | ||||
|     const int line = block.blockNumber() + 1; | ||||
|     const int column = cursor.position() - block.position() + 1; | ||||
|     m_cursorPositionLabel->setText(tr("Line: %1, Col: %2").arg(line).arg(column), | ||||
|     const int column = cursor.position() - block.position(); | ||||
|     m_cursorPositionLabel->setText(tr("Line: %1, Col: %2").arg(line).arg(e->tabSettings().columnAt(block.text(), column)+1), | ||||
|                                    tr("Line: %1, Col: 999").arg(e->blockCount())); | ||||
|     m_contextHelpId.clear(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user