From c37a692a778cfb355739cafc4bab6ce38de97974 Mon Sep 17 00:00:00 2001 From: Oleshe <125771937+0leshe@users.noreply.github.com> Date: Sun, 25 May 2025 22:12:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=20=D1=82=D0=B0=D0=BA=20=D0=B2?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D0=B2=D0=BB=D1=8F=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Libraries/GUI.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Libraries/GUI.lua b/Libraries/GUI.lua index 42fae9f4..753a655b 100755 --- a/Libraries/GUI.lua +++ b/Libraries/GUI.lua @@ -3064,9 +3064,11 @@ local function inputEventHandler(workspace, input, e1, e2, e3, e4, e5, e6, ...) input:setCursorPosition(unicode.len(input.text) + 1) -- V - elseif e4 == 47 and type(clipboard.paste()) ~= "table" and clipboard.paste() ~= nil then - input.text = input.text .. tostring(clipboard.paste()) - input:setCursorPosition(unicode.len(input.text)+1) + elseif e4 == 47 and type(clipboard.paste()) ~= "table" and clipboard.paste() ~= nil then + local startPos = input.cursorPosition + local toPaste = tostring(clipboard.paste()) + input.text = unicode.sub(input.text, 1,startPos) .. toPaste .. unicode.sub(input.text, startPos, unicode.len(input.text)) + input:setCursorPosition(startPos + unicode.len(toPaste)+1) else local char = unicode.char(e3)