Skip to content

Commit fe58866

Browse files
committed
Working prompt
1 parent c07e2e5 commit fe58866

File tree

3 files changed

+81
-75
lines changed

3 files changed

+81
-75
lines changed

examples/noline.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ fn main() {
152152
.unwrap();
153153

154154
let mut context = Context::default();
155-
let mut r =
156-
Runner::new(&mut editor, ROOT_MENU, io, &mut context);
155+
let mut r = Runner::new(&mut editor, ROOT_MENU, io, &mut context);
157156

158157
while let Ok(_) = r.input_line(&mut context) {}
159158
}

examples/simple.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn main() {
111111
let mut context = Context::default();
112112
let mut r = Runner::new(&mut buffer, ROOT_MENU, Output(window), &mut context);
113113
loop {
114-
match r.interface().0.getch() {
114+
match r.interface.0.getch() {
115115
Some(Input::Character('\n')) => {
116116
r.input_byte(b'\r', &mut context);
117117
}
@@ -123,7 +123,7 @@ fn main() {
123123
}
124124
Some(Input::KeyDC) => break,
125125
Some(input) => {
126-
r.interface().0.addstr(&format!("{:?}", input));
126+
r.interface.0.addstr(&format!("{:?}", input));
127127
}
128128
None => (),
129129
}

0 commit comments

Comments
 (0)