drawer.lua (2e716cec23f1563ddcc65bea7bd6bc89557bb16a) | drawer.lua (1f5696c7fd92009f7687b8c8eaf89c09eab72daa) |
---|---|
1-- 2-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 3-- All rights reserved. 4-- 5-- Redistribution and use in source and binary forms, with or without 6-- modification, are permitted provided that the following conditions 7-- are met: 8-- 1. Redistributions of source code must retain the above copyright --- 179 unchanged lines hidden (view full) --- 188 189 if (#choices < caridx) then 190 caridx = 1; 191 end 192 name = e.name(caridx, choices[caridx], choices); 193 else 194 name = e.name(); 195 end | 1-- 2-- Copyright (c) 2015 Pedro Souza <pedrosouza@freebsd.org> 3-- All rights reserved. 4-- 5-- Redistribution and use in source and binary forms, with or without 6-- modification, are permitted provided that the following conditions 7-- are met: 8-- 1. Redistributions of source code must retain the above copyright --- 179 unchanged lines hidden (view full) --- 188 189 if (#choices < caridx) then 190 caridx = 1; 191 end 192 name = e.name(caridx, choices[caridx], choices); 193 else 194 name = e.name(); 195 end |
196 print(entry_num .. ". "..name); | 196 print(entry_num .. ". " .. name); |
197 198 -- fill the alias table 199 alias_table[tostring(entry_num)] = e; 200 if (e.alias ~= nil) then 201 for n, a in ipairs(e.alias) do 202 alias_table[a] = e; 203 end 204 end --- 120 unchanged lines hidden --- | 197 198 -- fill the alias table 199 alias_table[tostring(entry_num)] = e; 200 if (e.alias ~= nil) then 201 for n, a in ipairs(e.alias) do 202 alias_table[a] = e; 203 end 204 end --- 120 unchanged lines hidden --- |