Skip to content

Commit

Permalink
Fix live scripting feature
Browse files Browse the repository at this point in the history
  • Loading branch information
hoontee committed Nov 28, 2023
1 parent 2008a51 commit 7863b31
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified Lync/Plugin.rbxm
Binary file not shown.
2 changes: 1 addition & 1 deletion Lync/RobloxPluginSource/Plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ local function setScriptSourceLive(container: LuaSourceContainer, lua: string)
cursorLine, cursorChar, anchorLine, anchorChar = document:GetSelection()
end
ScriptEditorService:UpdateSourceAsync(container, function(_oldContent: string)
return lua
return ({lua:gsub("\r", "")})[1]
end)
if document then
local maxLine = document:GetLineCount()
Expand Down

0 comments on commit 7863b31

Please sign in to comment.