summaryrefslogtreecommitdiff
path: root/src/utils/copynpaste.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/copynpaste.cpp')
-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;
}