summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2011-11-01 10:28:19 +0100
committerEike Ziller <eike.ziller@nokia.com>2011-11-01 10:44:16 +0100
commitf73dc6f44414610074a2ab064e07c4249991174a (patch)
tree71b1728113946504e8e5866cf4bb3d2f8f42820c /src/plugins
parent85f2571c35a835152824434c8796ac27bbf52887 (diff)
downloadqt-creator-f73dc6f44414610074a2ab064e07c4249991174a.tar.gz
fakevim: fix replacement of '\&'
Task-number: QTCREATORBUG-6434 Change-Id: Ic6ec34288733c4aa46cee353acf3920f3b4cf9ce Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/fakevim/fakevimhandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp
index 96d7d87859..0b99e1c527 100644
--- a/src/plugins/fakevim/fakevimhandler.cpp
+++ b/src/plugins/fakevim/fakevimhandler.cpp
@@ -3296,6 +3296,7 @@ bool FakeVimHandler::Private::handleExSubstituteCommand(const ExCommand &cmd)
i += caps.at(0).size();
}
}
+ repl.replace("\\&", "&");
text = text.left(pos) + repl + text.mid(pos + matched.size());
pos += repl.size();
if (!global)