aboutsummaryrefslogtreecommitdiff
path: root/src/display.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2018-03-05 09:57:34 -0800
committerJoe Wilm <joe@jwilm.com>2018-03-07 09:51:06 -0800
commit2cfdd595f11377fbd91536a428e87d949ed9a05e (patch)
tree95ea005517dd55f7b16d474df765d15e234798ad /src/display.rs
parent69f533d19e282c8b2c808be081a562119052d081 (diff)
downloadalacritty-2cfdd595f11377fbd91536a428e87d949ed9a05e.tar.gz
alacritty-2cfdd595f11377fbd91536a428e87d949ed9a05e.zip
Move selection into Grid
Supporting selections with scrollback has two major components: 1. Grid needs access to Selection so that it may update the scroll position as the terminal text changes. 2. Selection needs to be implemented in terms of buffer offsets -- NOT lines -- and be updated when Storage is rotated. This commit implements the first part.
Diffstat (limited to 'src/display.rs')
-rw-r--r--src/display.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/display.rs b/src/display.rs
index 418f616e..e5ae8fb4 100644
--- a/src/display.rs
+++ b/src/display.rs
@@ -24,7 +24,6 @@ use config::Config;
use font::{self, Rasterize};
use meter::Meter;
use renderer::{self, GlyphCache, QuadRenderer};
-use selection::Selection;
use term::{Term, SizeInfo};
use window::{self, Size, Pixels, Window, SetInnerSize};
@@ -318,7 +317,7 @@ impl Display {
/// A reference to Term whose state is being drawn must be provided.
///
/// This call may block if vsync is enabled
- pub fn draw(&mut self, mut terminal: MutexGuard<Term>, config: &Config, selection: Option<&Selection>) {
+ pub fn draw(&mut self, mut terminal: MutexGuard<Term>, config: &Config) {
// Clear dirty flag
terminal.dirty = !terminal.visual_bell.completed();
@@ -366,7 +365,7 @@ impl Display {
// Draw the grid
api.render_cells(
- terminal.renderable_cells(config, selection, window_focused),
+ terminal.renderable_cells(config, window_focused),
glyph_cache,
);
});