summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/ansi.rs
diff options
context:
space:
mode:
authorJohn Sullivan <jsullivan@csumb.edu>2019-08-24 16:18:51 -0700
committerChristian Duerr <contact@christianduerr.com>2019-08-24 23:18:50 +0000
commitad0365219f7f264ef0fdf0b3e4401bad7ac40e55 (patch)
treef766474d96708579c1a256e32cb69940184bd29b /alacritty_terminal/src/ansi.rs
parent629ea247cdccc33c6df0037f357ba9be48c7178d (diff)
downloadalacritty-ad0365219f7f264ef0fdf0b3e4401bad7ac40e55.tar.gz
alacritty-ad0365219f7f264ef0fdf0b3e4401bad7ac40e55.zip
Show text cursor when pressing shift in mouse mode
Fixes #2550.
Diffstat (limited to 'alacritty_terminal/src/ansi.rs')
-rw-r--r--alacritty_terminal/src/ansi.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/alacritty_terminal/src/ansi.rs b/alacritty_terminal/src/ansi.rs
index 3189b300..eb8283a6 100644
--- a/alacritty_terminal/src/ansi.rs
+++ b/alacritty_terminal/src/ansi.rs
@@ -52,11 +52,7 @@ fn parse_rgb_color(color: &[u8]) -> Option<Rgb> {
Some((255 * value / max) as u8)
};
- Some(Rgb {
- r: scale(colors[0])?,
- g: scale(colors[1])?,
- b: scale(colors[2])?,
- })
+ Some(Rgb { r: scale(colors[0])?, g: scale(colors[1])?, b: scale(colors[2])? })
}
// Parse colors in `#r(rrr)g(ggg)b(bbb)` format
@@ -1449,8 +1445,8 @@ pub mod C1 {
#[cfg(test)]
mod tests {
use super::{
- parse_number, xparse_color, Attr, CharsetIndex, Color, Handler, Processor,
- StandardCharset, TermInfo,
+ parse_number, xparse_color, Attr, CharsetIndex, Color, Handler, Processor, StandardCharset,
+ TermInfo,
};
use crate::index::{Column, Line};
use crate::term::color::Rgb;