aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ansi.rs8
-rw-r--r--src/input.rs4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/ansi.rs b/src/ansi.rs
index f24708bd..4c7ce5b7 100644
--- a/src/ansi.rs
+++ b/src/ansi.rs
@@ -627,7 +627,9 @@ impl<'a, H, W> vte::Perform for Performer<'a, H, W>
36 => Attr::Foreground(Color::Named(NamedColor::Cyan)),
37 => Attr::Foreground(Color::Named(NamedColor::White)),
38 => {
- if let Some(color) = parse_color(&args[i..], &mut i) {
+ let mut start = 0;
+ if let Some(color) = parse_color(&args[i..], &mut start) {
+ i += start;
Attr::Foreground(color)
} else {
break;
@@ -643,7 +645,9 @@ impl<'a, H, W> vte::Perform for Performer<'a, H, W>
46 => Attr::Background(Color::Named(NamedColor::Cyan)),
47 => Attr::Background(Color::Named(NamedColor::White)),
48 => {
- if let Some(color) = parse_color(&args[i..], &mut i) {
+ let mut start = 0;
+ if let Some(color) = parse_color(&args[i..], &mut start) {
+ i += start;
Attr::Background(color)
} else {
break;
diff --git a/src/input.rs b/src/input.rs
index 47ce52fa..3335e0b9 100644
--- a/src/input.rs
+++ b/src/input.rs
@@ -218,10 +218,6 @@ impl<'a, N: Notify + 'a> Processor<'a, N> {
}
}
- pub fn mouse_moved_cells(&mut self) {
-
- }
-
pub fn normal_mouse_report(&mut self, button: u8) {
let (line, column) = (self.ctx.mouse.line, self.ctx.mouse.column);