diff options
Diffstat (limited to 'script/core/hover/table.lua')
-rw-r--r-- | script/core/hover/table.lua | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/script/core/hover/table.lua b/script/core/hover/table.lua index 04d2d00d..e59a26d0 100644 --- a/script/core/hover/table.lua +++ b/script/core/hover/table.lua @@ -94,15 +94,24 @@ local function getVisibleKeyMap(source, fields) local uri = guide.getUri(source) local keys = {} local map = {} + local ignored = {} for _, field in ipairs(fields) do local key = vm.viewKey(field, uri) - if vm.isVisible(source, field) then + local rawKey = guide.getKeyName(field) + if rawKey and rawKey ~= key then + ignored[rawKey] = true + map[rawKey] = nil + end + if not ignored[key] + and vm.isVisible(source, field) then if key and not map[key] then map[key] = true - keys[#keys+1] = key end end end + for key in pairs(map) do + keys[#keys+1] = key + end table.sort(keys, function (a, b) if a == b then return false |