From 00a48b9a60e3df4a98fcd682dffcab6a80d26998 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 9 Dec 2015 20:46:03 +0300 Subject: Fix cursor position after insert text from clipboard (nacl) --- src/utils/copynpaste.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/utils') 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; } -- cgit v1.2.3-70-g09d2