mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Update examples for focusless draw
This commit is contained in:
parent
a2d1c019eb
commit
f81a9b2768
@ -29,7 +29,7 @@ impl KeyCodeView {
|
||||
}
|
||||
|
||||
impl View for KeyCodeView {
|
||||
fn draw(&mut self, printer: &Printer, _: bool) {
|
||||
fn draw(&mut self, printer: &Printer) {
|
||||
for (y,line) in self.history.iter().enumerate() {
|
||||
printer.print((0,y), &line);
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ impl BufferView {
|
||||
}
|
||||
|
||||
impl View for BufferView {
|
||||
fn draw(&mut self, printer: &Printer, _: bool) {
|
||||
fn draw(&mut self, printer: &Printer) {
|
||||
// Before drawing, we'll want to update the buffer
|
||||
self.update();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user