summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-09 20:46:03 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-09 20:46:03 +0300
commit00a48b9a60e3df4a98fcd682dffcab6a80d26998 (patch)
tree8e87c3ecc259318fa83921048792d346a37da661
parentecef66ec4e58ac44fe3d144c5157e799173cef91 (diff)
downloadmanaplus-00a48b9a60e3df4a98fcd682dffcab6a80d26998.tar.gz
manaplus-00a48b9a60e3df4a98fcd682dffcab6a80d26998.tar.bz2
manaplus-00a48b9a60e3df4a98fcd682dffcab6a80d26998.tar.xz
manaplus-00a48b9a60e3df4a98fcd682dffcab6a80d26998.zip
Fix cursor position after insert text from clipboard (nacl)
-rw-r--r--src/utils/copynpaste.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/copynpaste.cpp b/src/utils/copynpaste.cpp
index 45729021e..0f43c9127 100644
--- a/src/utils/copynpaste.cpp
+++ b/src/utils/copynpaste.cpp
@@ -480,6 +480,7 @@ bool retrieveBuffer(std::string& text, size_t& pos)
naclPostMessage("clipboard-paste", "");
std::string response = naclWaitForMessage(handle);
text.insert(pos, response);
+ pos += response.size();
return true;
}