Skip to content

Commit

Permalink
fix #386 tuikit would freeze on unknown keystrokes
Browse files Browse the repository at this point in the history
- update tuikit -> 0.4.4
  • Loading branch information
lotabout committed Feb 14, 2021
1 parent dde3ddb commit c90498a
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ log = "0.4.6"
env_logger = "0.8.2"
time = "0.2.23"
clap = "2.26.2"
tuikit = "0.4.3"
tuikit = "0.4.4"
vte = "0.9.0"
fuzzy-matcher = "0.3.7"
rayon = "1.0.3"
Expand Down
2 changes: 1 addition & 1 deletion src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ impl Header {
}

impl Draw for Header {
fn draw(&self, canvas: &mut dyn Canvas) -> Result<()> {
fn draw(&self, canvas: &mut dyn Canvas) -> DrawResult<()> {
let (screen_width, screen_height) = canvas.size()?;
if screen_width < 3 {
return Err("screen width is too small".into());
Expand Down
2 changes: 1 addition & 1 deletion src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ struct Status {

#[allow(unused_assignments)]
impl Draw for Status {
fn draw(&self, canvas: &mut dyn Canvas) -> Result<()> {
fn draw(&self, canvas: &mut dyn Canvas) -> DrawResult<()> {
// example:
// /--num_matched/num_read /-- current_item_index
// [| 869580/869580 0.]
Expand Down
2 changes: 1 addition & 1 deletion src/previewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ impl EventHandler for Previewer {
}

impl Draw for Previewer {
fn draw(&self, canvas: &mut dyn Canvas) -> Result<()> {
fn draw(&self, canvas: &mut dyn Canvas) -> DrawResult<()> {
canvas.clear()?;
let (screen_width, screen_height) = canvas.size()?;

Expand Down
2 changes: 1 addition & 1 deletion src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ impl EventHandler for Query {
}

impl Draw for Query {
fn draw(&self, canvas: &mut dyn Canvas) -> Result<()> {
fn draw(&self, canvas: &mut dyn Canvas) -> DrawResult<()> {
canvas.clear()?;
let before = self.get_before();
let after = self.get_after();
Expand Down
4 changes: 2 additions & 2 deletions src/selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ impl Selection {
row: usize,
matched_item: &MatchedItem,
is_current: bool,
) -> Result<()> {
) -> DrawResult<()> {
let (screen_width, screen_height) = canvas.size()?;

// update item heights
Expand Down Expand Up @@ -524,7 +524,7 @@ impl Selection {
}

impl Draw for Selection {
fn draw(&self, canvas: &mut dyn Canvas) -> Result<()> {
fn draw(&self, canvas: &mut dyn Canvas) -> DrawResult<()> {
let (_screen_width, screen_height) = canvas.size()?;
canvas.clear()?;

Expand Down

0 comments on commit c90498a

Please sign in to comment.