mirror of
https://codeberg.org/Wuzzy/pride_flags.git
synced 2025-04-30 06:01:43 -04:00
Fix next/prev flag fallback
This commit is contained in:
parent
e07c633679
commit
f30176ccb1
1 changed files with 2 additions and 2 deletions
4
init.lua
4
init.lua
|
@ -80,14 +80,14 @@ for f=1, #flag_list do
|
||||||
prev_flag[name1] = name0
|
prev_flag[name1] = name0
|
||||||
end
|
end
|
||||||
local get_next_flag = function(current_flag_name)
|
local get_next_flag = function(current_flag_name)
|
||||||
if not current_flag_name then
|
if not current_flag_name or not next_flag[ current_flag_name ] then
|
||||||
return DEFAULT_FLAG
|
return DEFAULT_FLAG
|
||||||
else
|
else
|
||||||
return next_flag[current_flag_name]
|
return next_flag[current_flag_name]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local get_prev_flag = function(current_flag_name)
|
local get_prev_flag = function(current_flag_name)
|
||||||
if not current_flag_name then
|
if not current_flag_name or not prev_flag[ current_flag_name ] then
|
||||||
return DEFAULT_FLAG
|
return DEFAULT_FLAG
|
||||||
else
|
else
|
||||||
return prev_flag[current_flag_name]
|
return prev_flag[current_flag_name]
|
||||||
|
|
Loading…
Add table
Reference in a new issue