Update pancurses to 0.4.0

This commit is contained in:
nabijaczleweli 2016-10-10 20:51:32 +02:00
parent af0c97749d
commit c84cafb4fd
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1
2 changed files with 4 additions and 3 deletions

View File

@ -26,7 +26,7 @@ features = ["wide"]
optional = true optional = true
[dependencies.pancurses] [dependencies.pancurses]
version = "0.3.0" version = "0.4.0"
optional = true optional = true
[dependencies.termion] [dependencies.termion]

View File

@ -4,8 +4,7 @@ use backend;
use event::{Event, Key}; use event::{Event, Key};
use self::super::find_closest; use self::super::find_closest;
use theme::{BaseColor, Color, ColorStyle, Effect}; use theme::{Color, ColorStyle, Effect};
use utf8;
pub struct Concrete { pub struct Concrete {
window: pancurses::Window, window: pancurses::Window,
@ -206,6 +205,8 @@ impl backend::Backend for Concrete {
pancurses::Input::KeyC1 => Event::Refresh, pancurses::Input::KeyC1 => Event::Refresh,
pancurses::Input::KeyC3 => Event::Refresh, pancurses::Input::KeyC3 => Event::Refresh,
} }
} else {
Event::Refresh
} }
} }