aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fakevim
diff options
context:
space:
mode:
authorLukas Holecek <hluk@email.cz>2021-03-03 13:09:54 +0100
committerLukas Holecek <hluk@email.cz>2021-03-03 15:55:43 +0000
commite3d95ac0945186d03a8bd4ab2b6c8eebe2bc8b1a (patch)
tree18bfd4cd4ce52b9f5b321193eeb14822f6743284 /src/plugins/fakevim
parentb8af4341da0cfeae4cac86e00f9b7559deefe3ce (diff)
FakeVim: Fix Windows build
Standalone FakeVim library fails to build on Windows due to missing operator+ for "QString" and "const char *" arguments. This is problem even if using `QT_RESTRICTED_CAST_FROM_ASCII`. Change-Id: I0ec13d7dfa8ef99d98fa737456d12f16facc5427 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/fakevim')
-rw-r--r--src/plugins/fakevim/fakevimhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/fakevim/fakevimhandler.cpp b/src/plugins/fakevim/fakevimhandler.cpp
index 37301602a48..417dcd5728b 100644
--- a/src/plugins/fakevim/fakevimhandler.cpp
+++ b/src/plugins/fakevim/fakevimhandler.cpp
@@ -7712,7 +7712,8 @@ void FakeVimHandler::Private::surroundCurrentRange(const Input &input, const QSt
leaveVisualMode();
if (dotCommand.isEmpty()) { // i.e. we came from normal mode
- dotCommand = dotCommandFromSubMode(g.submode) + (g.surroundUpperCaseS ? "S" : "s")
+ dotCommand = dotCommandFromSubMode(g.submode)
+ + QLatin1Char(g.surroundUpperCaseS ? 'S' : 's')
+ g.dotCommand + input.asChar();
}