diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-09 20:46:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-09 20:46:03 +0300 |
commit | 00a48b9a60e3df4a98fcd682dffcab6a80d26998 (patch) | |
tree | 8e87c3ecc259318fa83921048792d346a37da661 /src/utils | |
parent | ecef66ec4e58ac44fe3d144c5157e799173cef91 (diff) | |
download | plus-00a48b9a60e3df4a98fcd682dffcab6a80d26998.tar.gz plus-00a48b9a60e3df4a98fcd682dffcab6a80d26998.tar.bz2 plus-00a48b9a60e3df4a98fcd682dffcab6a80d26998.tar.xz plus-00a48b9a60e3df4a98fcd682dffcab6a80d26998.zip |
Fix cursor position after insert text from clipboard (nacl)
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/copynpaste.cpp | 1 |
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; } |