aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-06-23 09:42:00 -0700
committerJoe Wilm <joe@jwilm.com>2016-06-23 09:43:55 -0700
commit09600a3d402a08c94803c00624fa7ac7bcfad73e (patch)
tree5eb6bede5318f300fc40aadf9b215b80c1c4894f /src/main.rs
parentf5faa40066e87d615e35dd3d62b96ccc9a49e705 (diff)
downloadr-alacritty-09600a3d402a08c94803c00624fa7ac7bcfad73e.tar.gz
r-alacritty-09600a3d402a08c94803c00624fa7ac7bcfad73e.tar.bz2
r-alacritty-09600a3d402a08c94803c00624fa7ac7bcfad73e.zip
Fix bug handling ansi mode sequences
The sense of set_mode and unset_mode was inverted. The TextCursor/ShowCursor mode depended on the incorrect behavior, and that was fixed as well. TextCursor was renamed to ShowCursor to be perfectly clear on the intent.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 48f2df74..33e5e8f9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -250,7 +250,7 @@ fn main() {
api.render_grid(terminal.grid(), &mut glyph_cache);
// Also draw the cursor
- if !terminal.mode().contains(term::mode::TEXT_CURSOR) {
+ if terminal.mode().contains(term::mode::SHOW_CURSOR) {
api.render_cursor(terminal.cursor(), &mut glyph_cache);
}
})