fakevim: fix insert of Tabs

This commit is contained in:
hjk
2010-07-06 09:27:56 +02:00
parent cbdd9202d2
commit d3cea8a4d1

View File

@@ -2650,7 +2650,7 @@ EventResult FakeVimHandler::Private::handleInsertMode(const Input &input)
} else if (input.isKey(Key_Tab) && hasConfig(ConfigExpandTab)) {
m_justAutoIndented = 0;
const int ts = config(ConfigTabStop).toInt();
const int col = physicalCursorColumnInDocument();
const int col = logicalCursorColumnInDocument();
QString str = QString(ts - col % ts, ' ');
m_lastInsertion.append(str);
insertText(str);