Over-zealous code completion causes bugs
Brought to you by:
jfgoulet
In Garry's Mod, there is a function call, "umsg.End()". LuaEdit refuses to let me type this string within a function. It changes "End" to "end", causing the code to be incorrect.
Steps to reproduce:
Using LuaEdit 3.0.5 on Windows 7, attempt to type/paste the following:
local function PlayDeathSound( player )
umsg.Start( "PlayDeathSound", player )
umsg.End()
end
hook.Add( "PlayerDeath", "MG_PlayDeathSound", PlayDeathSound )
Result: The third line will be replaced with:
umsg.end()
Which is incorrect.
We've successfully reproduced the issue on our side and found the cause of the issue. This will be fixed in our next released.
Fixed in 3.0.8