mirror of
https://github.com/rm-dr/daisy
synced 2025-10-11 03:02:06 -07:00
Substitute cleanup
This commit is contained in:
@ -3,8 +3,7 @@ use std::io::Write;
|
||||
use termion::raw::RawTerminal;
|
||||
use termion::color;
|
||||
use termion::style;
|
||||
|
||||
use crate::parser::substitute;
|
||||
use crate::parser::substitute_cursor;
|
||||
|
||||
|
||||
#[derive(Debug)]
|
||||
@ -43,7 +42,7 @@ impl PromptBuffer {
|
||||
let i = if l == 0 {0} else {l - self.cursor};
|
||||
|
||||
// Draw prettyprinted expression
|
||||
let (display_cursor, s) = substitute(&self.get_contents(), i);
|
||||
let (display_cursor, s) = substitute_cursor(&self.get_contents(), i);
|
||||
|
||||
write!(
|
||||
stdout, "\r{}{}==>{}{} {}",
|
||||
|
Reference in New Issue
Block a user