bids panel overhauled

This commit is contained in:
Manuel Simon Hirsig
2016-01-25 21:59:07 +01:00
parent e758653f2a
commit 847c027293
10 changed files with 240 additions and 418 deletions
+2 -2
View File
@@ -139,7 +139,7 @@ function public.completor(edit_box)
function self.next()
update_dropdown()
if getn(suggestions) > 0 then
index = index > 0 and math.mod(index + 1, getn(suggestions) + 1) or 1
index = index > 0 and mod(index + 1, getn(suggestions) + 1) or 1
update_highlighting()
if index == 0 then
self.set_quietly(input)
@@ -245,7 +245,7 @@ function public.selector(edit_box)
function self.next()
update_dropdown()
if getn(suggestions) > 0 then
index = math.mod(index, getn(suggestions)) + 1
index = mod(index, getn(suggestions)) + 1
update_highlighting()
end
end