diff options
author | Lukas Holecek <hluk@email.cz> | 2021-03-03 13:09:54 +0100 |
---|---|---|
committer | Lukas Holecek <hluk@email.cz> | 2021-03-03 15:55:43 +0000 |
commit | e3d95ac0945186d03a8bd4ab2b6c8eebe2bc8b1a (patch) | |
tree | 18bfd4cd4ce52b9f5b321193eeb14822f6743284 /src/plugins/fakevim | |
parent | b8af4341da0cfeae4cac86e00f9b7559deefe3ce (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.cpp | 3 |
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(); } |