Drop termline dependency

This commit is contained in:
Richard Feldman 2022-11-01 21:27:33 -04:00
parent 19ffa61f8f
commit 1499ec5def
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
4 changed files with 43 additions and 106 deletions

View file

@ -42,9 +42,10 @@ pub fn main() -> i32 {
Ok(line) => {
editor.add_history_entry(line.trim());
let dimensions = editor.dimensions();
let repl_helper = editor.helper_mut().expect("Editor helper was not set");
match repl_helper.step(&line) {
match repl_helper.step(&line, dimensions) {
Ok(output) => {
// If there was no output, don't print a blank line!
// (This happens for something like a type annotation.)