summaryrefslogtreecommitdiffstats
path: root/tui-react
diff options
context:
space:
mode:
authorSebastian Thiel <sthiel@thoughtworks.com>2020-05-04 13:27:30 +0800
committerSebastian Thiel <sthiel@thoughtworks.com>2020-05-04 13:27:30 +0800
commit42c541ac1977cef5169981c5996820214da9c937 (patch)
tree5f82f70e61536478de487a17726d69a8c5c467bf /tui-react
parenta078086ce7fad108929afc7c8f24ab7c05b1be46 (diff)
Upgrade to tui 0.9v2.6.0tui-react-v0.4.0
Diffstat (limited to 'tui-react')
-rw-r--r--tui-react/Cargo.toml4
-rw-r--r--tui-react/src/list.rs6
2 files changed, 5 insertions, 5 deletions
diff --git a/tui-react/Cargo.toml b/tui-react/Cargo.toml
index c61cefe..6782a48 100644
--- a/tui-react/Cargo.toml
+++ b/tui-react/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "tui-react"
-version = "0.3.0"
+version = "0.4.0"
authors = ["Sebastian Thiel <sthiel@thoughtworks.com>"]
edition = "2018"
repository = "https://github.com/Byron/dua-cli"
@@ -9,7 +9,7 @@ readme = "README.md"
license = "MIT"
[dependencies]
-tui = { version = "0.8.0", default-features = false }
+tui = { version = "0.9.1", default-features = false }
log = "0.4.6"
unicode-segmentation = "1.6.0"
unicode-width = "0.1.7"
diff --git a/tui-react/src/list.rs b/tui-react/src/list.rs
index 6c7699a..8ffe88c 100644
--- a/tui-react/src/list.rs
+++ b/tui-react/src/list.rs
@@ -43,8 +43,8 @@ impl List {
} = props;
let list_area = match block {
- Some(mut b) => {
- b.draw(area, buf);
+ Some(b) => {
+ b.render(area, buf);
b.inner(area)
}
None => area,
@@ -62,7 +62,7 @@ impl List {
.take(list_area.height as usize)
{
let (x, y) = (list_area.left(), list_area.top() + i as u16);
- Paragraph::new(text_iterator.iter()).draw(
+ Paragraph::new(text_iterator.iter()).render(
Rect {
x,
y,