fakevim: fix insert of Tabs

(cherry picked from commit d3cea8a4d1)
This commit is contained in:
hjk
2010-07-06 09:27:56 +02:00
parent bcdcbc2f70
commit 3cae595b7a

View File

@@ -2628,7 +2628,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);