mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 05:26:42 +02:00
refactor: Use Margin directly instead of a reference
Could alternatively be done with the unstable feature `widget_ref`
This commit is contained in:
parent
c90d19bc61
commit
d86d9652ec
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ _taskwarrior-tui() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local context curcontext="$curcontext" state line
|
local context curcontext="$curcontext" state line
|
||||||
_arguments "${_arguments_options[@]}" \
|
_arguments "${_arguments_options[@]}" : \
|
||||||
'-d+[Sets the data folder for taskwarrior-tui]:FOLDER: ' \
|
'-d+[Sets the data folder for taskwarrior-tui]:FOLDER: ' \
|
||||||
'--data=[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: ' \
|
'-c+[Sets the config folder for taskwarrior-tui (currently not used)]:FOLDER: ' \
|
||||||
|
|
|
@ -918,7 +918,7 @@ impl TaskwarriorTui {
|
||||||
|
|
||||||
let area = centered_rect(percent_x, percent_y, f.size());
|
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();
|
let (contexts, headers) = self.get_all_contexts();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue