Skip to content

Commit 9e91636

Browse files
committed
Trim trailing whitespace
1 parent d04b116 commit 9e91636

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

plugins/lua/sort/deathcause_button.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ function DeathCauseOverlay:init()
3131
local creatures = df.global.game.main_interface.info.creatures
3232
local list_widget = dfhack.gui.getWidget(creatures, 'Tabs', 'Dead/Missing')
3333
if not list_widget then return nil end
34-
34+
3535
local children = dfhack.gui.getWidgetChildren(list_widget)
3636
local list_container = children[1]
3737
local grandchildren = dfhack.gui.getWidgetChildren(list_container)
38-
38+
3939
local scrollable_list = grandchildren[2]
4040
if not scrollable_list then
4141
return nil
4242
end
43-
43+
4444
local rows = dfhack.gui.getWidgetChildren(scrollable_list)
45-
45+
4646
local cursor_idx = list_widget.cursor_idx or 0
47-
47+
4848
if cursor_idx >= 0 and cursor_idx < #rows then
4949
local row = rows[cursor_idx + 1]
5050

0 commit comments

Comments
 (0)