From 98a075791682cdc96e8ba6940d4d71ab2227a02c Mon Sep 17 00:00:00 2001
From: Kai Koehne <kai.koehne@nokia.com>
Date: Tue, 16 Feb 2010 10:02:02 +0100
Subject: [PATCH] Compile fix on Mac OS X (gcc 4.0.1)

---
 src/plugins/fakevim/fakevimhandler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp
index 6174f486ddb..5cddec10873 100644
--- a/src/plugins/fakevim/fakevimhandler.cpp
+++ b/src/plugins/fakevim/fakevimhandler.cpp
@@ -2016,7 +2016,7 @@ EventResult FakeVimHandler::Private::handleInsertMode(int key, int,
             if (col <= ind.logical && col && startsWithWhitespace(data, col)) {
                 const int ts = config(ConfigTabStop).toInt();
                 const int newcol = col - 1 - (col - 1) % ts;
-                setLineContents(line, tabExpand(newcol) + data.midRef(col));
+                setLineContents(line, tabExpand(newcol).append(data.midRef(col)));
                 m_lastInsertion.clear(); // FIXME
             } else {
                 m_tc.deletePreviousChar();
-- 
GitLab