aboutsummaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-10-10 08:29:51 -0700
committerJoe Wilm <joe@jwilm.com>2016-10-10 08:29:51 -0700
commitf69ea009a3f539d320fa0e7780730bcd35bdf772 (patch)
tree29b73b864f95d80d7569f87c0be64906f72bbb36 /src/ansi.rs
parentb80abe9a54acaea65c5ed4e676a9fbc8e211fd40 (diff)
downloadalacritty-f69ea009a3f539d320fa0e7780730bcd35bdf772.tar.gz
alacritty-f69ea009a3f539d320fa0e7780730bcd35bdf772.zip
Implement blank character insertion
This is used by things like Bash's reverse-i-search and things get *very* messed up without it.
Diffstat (limited to 'src/ansi.rs')
-rw-r--r--src/ansi.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ansi.rs b/src/ansi.rs
index 48f79d2b..45cc66f9 100644
--- a/src/ansi.rs
+++ b/src/ansi.rs
@@ -107,7 +107,7 @@ pub trait Handler {
fn goto_col(&mut self, Column) {}
/// Insert blank characters in current line starting from cursor
- fn insert_blank(&mut self, usize) {}
+ fn insert_blank(&mut self, Column) {}
/// Move cursor up `rows`
fn move_up(&mut self, Line) {}
@@ -470,7 +470,7 @@ impl<'a, H: Handler + TermInfo + 'a> vte::Perform for Performer<'a, H> {
}
match action {
- '@' => handler.insert_blank(arg_or_default!(idx: 0, default: 1) as usize),
+ '@' => handler.insert_blank(Column(arg_or_default!(idx: 0, default: 1) as usize)),
'A' => {
handler.move_up(Line(arg_or_default!(idx: 0, default: 1) as usize));
},