refactor: Use Margin directly instead of a reference

Could alternatively be done with the unstable feature `widget_ref`
This commit is contained in:
a-kenji 2025-05-28 22:22:39 +02:00
parent c90d19bc61
commit d86d9652ec
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ _taskwarrior-tui() {
fi
local context curcontext="$curcontext" state line
_arguments "${_arguments_options[@]}" \
_arguments "${_arguments_options[@]}" : \
'-d+[Sets the data folder for taskwarrior-tui]:FOLDER: ' \
'--data=[Sets the data folder for taskwarrior-tui]:FOLDER: ' \
'-c+[Sets the config folder for taskwarrior-tui (currently not used)]:FOLDER: ' \

View file

@ -918,7 +918,7 @@ impl TaskwarriorTui {
let area = centered_rect(percent_x, percent_y, f.size());
f.render_widget(Clear, area.inner(&Margin { vertical: 0, horizontal: 0 }));
f.render_widget(Clear, area.inner(Margin { vertical: 0, horizontal: 0 }));
let (contexts, headers) = self.get_all_contexts();