We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bcac69 commit bf98d22Copy full SHA for bf98d22
MainModule/Client/UI/Default/Console.rbxmx
@@ -799,7 +799,16 @@ return function(data, env)
799
new.Parent = autoList
800
new.Position = UDim2.new(0, 0, 0, 20 * aNum)
801
new.MouseButton1Down:Connect(function()
802
- text.Text = text.Text..tostring(v)
+ local args = string.split(text.Text, splitKey)
803
+ args[#args] = nil
804
+
805
+ local textWithoutLastArg = table.concat(args, splitKey)
806
+ if textWithoutLastArg ~= "" then
807
+ textWithoutLastArg ..= splitKey
808
+ end
809
810
+ text.Text = textWithoutLastArg .. tostring(v) .. " "
811
+ text.CursorPosition = #text.Text + 1
812
text:CaptureFocus()
813
end)
814
0 commit comments