aboutsummaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-06-09 08:37:59 -0700
committerJoe Wilm <joe@jwilm.com>2016-06-09 08:37:59 -0700
commit2395066318fea516bc0efbc7aecfb90a0d2548da (patch)
treeb42cdf9f1b300d56337482e2fc319f2cee052e9f /src/ansi.rs
parent8566e17860933ef1da36a88b5d3fd839352065b8 (diff)
downloadalacritty-2395066318fea516bc0efbc7aecfb90a0d2548da.tar.gz
alacritty-2395066318fea516bc0efbc7aecfb90a0d2548da.zip
Fix backspace
There's never a count associated with this, and it has been removed from the Handler method to reflect as much.
Diffstat (limited to 'src/ansi.rs')
-rw-r--r--src/ansi.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ansi.rs b/src/ansi.rs
index 5f4419b5..ff2b0daf 100644
--- a/src/ansi.rs
+++ b/src/ansi.rs
@@ -251,7 +251,7 @@ pub trait Handler {
fn put_tab(&mut self, _count: i64) {}
/// Backspace `count` characters
- fn backspace(&mut self, _count: i64) {}
+ fn backspace(&mut self) {}
/// Carriage return
fn carriage_return(&mut self) {}
@@ -355,7 +355,7 @@ impl Handler for DebugHandler {
fn move_down_and_cr(&mut self, rows: i64) { println!("move_down_and_cr: {}", rows); }
fn move_up_and_cr(&mut self, rows: i64) { println!("move_up_and_cr: {}", rows); }
fn put_tab(&mut self, count: i64) { println!("put_tab: {}", count); }
- fn backspace(&mut self, count: i64) { println!("backspace: {}", count); }
+ fn backspace(&mut self) { println!("backspace"); }
fn carriage_return(&mut self) { println!("carriage_return"); }
fn linefeed(&mut self) { println!("linefeed"); }
fn bell(&mut self) { println!("bell"); }
@@ -754,7 +754,7 @@ impl Parser {
{
match c {
C0::HT => handler.put_tab(1),
- C0::BS => handler.backspace(1),
+ C0::BS => handler.backspace(),
C0::CR => handler.carriage_return(),
C0::LF |
C0::VT |