diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-07-22 13:19:37 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-07-22 13:19:37 +0800 |
commit | 3715b714c83cdbbe7230d85ae87e5f93c07160e0 (patch) | |
tree | 7b1e4292b8b6a1a32129bb70a4624164c14fc376 | |
parent | b4476bac270e2d1cdeb0f28bf7528d95b770a7e3 (diff) |
Fix incorrect render area of tui-react list
-rw-r--r-- | tui-react/src/list.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tui-react/src/list.rs b/tui-react/src/list.rs index 16e2a91..0ffb3eb 100644 --- a/tui-react/src/list.rs +++ b/tui-react/src/list.rs @@ -45,9 +45,9 @@ impl List { let list_area = match block { Some(b) => { - let area = b.inner(area); + let inner_area = b.inner(area); b.render(area, buf); - area + inner_area } None => area, }; |