Skip to content

Commit

Permalink
fix edit autocomplete sort
Browse files Browse the repository at this point in the history
  • Loading branch information
thisdp committed Aug 17, 2024
1 parent 44857d4 commit 103739f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Core/edit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,20 @@ function dgsEditCheckMultiClick(button,state,x,y,times)
end
end
end

--[[
function dgsEditACCompare(a, b)
if not a or not b then return false end
if a[1] < b[1] then return true end
if a[2] and not b[2] then return true end
return false
end
]]
function dgsEditACCompare(a, b)
if not a or not b then return false end
if a[1] < b[1] then return true end
if a[1] > b[1] then return false end
return a[2] and not b[2]
end

function dgsEditCheckAutoComplete()
local eleData = dgsElementData[source]
Expand Down

0 comments on commit 103739f

Please sign in to comment.