fakevim: bs=2 "has" start

Task-number: QTCREATORBUG-6640
Change-Id: Iaa90bd9c96207883dbb5889e1c0df544e3a1aa40
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-11-30 10:07:25 +01:00
committed by hjk
parent d84b5d4596
commit 9056dc384a

View File

@@ -2947,7 +2947,9 @@ EventResult FakeVimHandler::Private::handleInsertMode(const Input &input)
} else if (input.isBackspace()) {
joinPreviousEditBlock();
m_justAutoIndented = 0;
if (!m_lastInsertion.isEmpty() || hasConfig(ConfigBackspace, "start")) {
if (!m_lastInsertion.isEmpty()
|| hasConfig(ConfigBackspace, "start")
|| hasConfig(ConfigBackspace, "2")) {
const int line = cursorLine() + 1;
const Column col = cursorColumn();
QString data = lineContents(line);