diff --git a/CHANGELOG.md b/CHANGELOG.md index f91a5392..e15f8612 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## 0.4.2-rc2 +## 0.4.2-rc3 ### Packaging diff --git a/Cargo.lock b/Cargo.lock index 14723464..dbd2cb9f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -15,9 +15,9 @@ dependencies = [ [[package]] name = "alacritty" -version = "0.4.2-rc2" +version = "0.4.2-rc3" dependencies = [ - "alacritty_terminal 0.4.2-rc2", + "alacritty_terminal 0.4.2-rc3", "clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)", "dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "embed-resource 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -45,7 +45,7 @@ dependencies = [ [[package]] name = "alacritty_terminal" -version = "0.4.2-rc2" +version = "0.4.2-rc3" dependencies = [ "base64 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/alacritty/Cargo.toml b/alacritty/Cargo.toml index 9a972605..b03a0e45 100644 --- a/alacritty/Cargo.toml +++ b/alacritty/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "alacritty" -version = "0.4.2-rc2" +version = "0.4.2-rc3" authors = ["Christian Duerr ", "Joe Wilm "] license = "Apache-2.0" description = "GPU-accelerated terminal emulator" diff --git a/alacritty_terminal/Cargo.toml b/alacritty_terminal/Cargo.toml index 152470ea..c7ad3acc 100644 --- a/alacritty_terminal/Cargo.toml +++ b/alacritty_terminal/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "alacritty_terminal" -version = "0.4.2-rc2" +version = "0.4.2-rc3" authors = ["Christian Duerr ", "Joe Wilm "] license = "Apache-2.0" description = "Library for writing terminal emulators" diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index ac5e56b5..7fbd8dc8 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -231,6 +231,13 @@ impl<'a, C> RenderableCellsIter<'a, C> { (Column(0), num_cols - 1) }; + // Do not render completely offscreen selection + let viewport_start = grid.display_offset(); + let viewport_end = viewport_start + grid.num_lines().0; + if span.end.line >= viewport_end || span.start.line < viewport_start { + return None; + } + // Get on-screen lines of the selection's locations let mut start = grid.clamp_buffer_to_visible(span.start); let mut end = grid.clamp_buffer_to_visible(span.end); diff --git a/extra/alacritty.man b/extra/alacritty.man index 97c55b1c..62513665 100644 --- a/extra/alacritty.man +++ b/extra/alacritty.man @@ -1,4 +1,4 @@ -.TH ALACRITTY "1" "August 2018" "alacritty 0.4.2-rc2" "User Commands" +.TH ALACRITTY "1" "August 2018" "alacritty 0.4.2-rc3" "User Commands" .SH NAME alacritty \- a cross-platform, gpu-accelerated terminal emulator .SH "SYNOPSIS" diff --git a/extra/linux/io.alacritty.Alacritty.appdata.xml b/extra/linux/io.alacritty.Alacritty.appdata.xml index f6e3b1b5..47b86ba2 100644 --- a/extra/linux/io.alacritty.Alacritty.appdata.xml +++ b/extra/linux/io.alacritty.Alacritty.appdata.xml @@ -28,7 +28,7 @@ However, it does allow configuration of many aspects of the terminal.

https://github.com/alacritty/alacritty https://github.com/alacritty/alacritty/issues - + https://github.com/alacritty/alacritty/blob/master/CONTRIBUTING.md#contact Joe Wilm diff --git a/extra/linux/redhat/alacritty.spec b/extra/linux/redhat/alacritty.spec index 5ff84041..d5d174c9 100644 --- a/extra/linux/redhat/alacritty.spec +++ b/extra/linux/redhat/alacritty.spec @@ -1,5 +1,5 @@ Name: alacritty -Version: 0.4.2-rc2 +Version: 0.4.2-rc3 Release: 1%{?dist} Summary: A cross-platform, GPU enhanced terminal emulator License: ASL 2.0 diff --git a/extra/linux/snap/snapcraft.yaml b/extra/linux/snap/snapcraft.yaml index 62524505..6633730e 100644 --- a/extra/linux/snap/snapcraft.yaml +++ b/extra/linux/snap/snapcraft.yaml @@ -1,5 +1,5 @@ name: alacritty -version: '0.4.2-rc2' +version: '0.4.2-rc3' summary: Modern, GPU accelerated terminal emulator description: | Alacritty is a terminal emulator with a strong focus on simplicity and diff --git a/extra/osx/Alacritty.app/Contents/Info.plist b/extra/osx/Alacritty.app/Contents/Info.plist index 7b091138..b0cf49ee 100644 --- a/extra/osx/Alacritty.app/Contents/Info.plist +++ b/extra/osx/Alacritty.app/Contents/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.4.2-rc2 + 0.4.2-rc3 CFBundleSupportedPlatforms MacOSX diff --git a/extra/windows/wix/alacritty.wxs b/extra/windows/wix/alacritty.wxs index 610a699f..1cab5d82 100644 --- a/extra/windows/wix/alacritty.wxs +++ b/extra/windows/wix/alacritty.wxs @@ -2,7 +2,7 @@ - +