fix for backspace style buffer
@@ -137,10 +137,8 @@ fn main() {
app::Key::BackSpace => {
if term.cmd.len() != 0 {
let text_len = term.term.text().len() as u32;
- term
- .term
- .buffer()
- .remove(text_len - 1, text_len as u32);
+ term.term.buffer().remove(text_len - 1, text_len);
+ term.sbuf.remove(text_len - 1, text_len);
term.cmd.pop().unwrap();
return true;
} else {
