diff options
author | Joe Wilm <joe@jwilm.com> | 2016-07-03 21:05:28 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-07-03 21:07:58 -0700 |
commit | 6639e6f24fab269f23392b11e566ef0a29ca163b (patch) | |
tree | 682a41a773d7b7f0b586a6459ad49ac45585007d /src/renderer/mod.rs | |
parent | 63098f210e142453e14158a62c6fe0116d5fb94f (diff) | |
download | alacritty-6639e6f24fab269f23392b11e566ef0a29ca163b.tar.gz alacritty-6639e6f24fab269f23392b11e566ef0a29ca163b.zip |
Move ::grid::index to ::index
The grid and term modules already rely on the index types, and ansi is
about to be updated with strongly typed APIs. Since Cursor, Line, and
Column are fundamental to the code in several modules, namespacing them
under one of them seems less correct than a module that stands by
itself.
Diffstat (limited to 'src/renderer/mod.rs')
-rw-r--r-- | src/renderer/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index c967fa05..4cd26771 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -24,11 +24,12 @@ use std::sync::atomic::{Ordering, AtomicBool}; use cgmath; use gl::types::*; use gl; +use grid::Grid; +use index; use notify::{Watcher as WatcherApi, RecommendedWatcher as Watcher, op}; +use term::{self, cell, Cell}; use font::{Rasterizer, RasterizedGlyph, FontDesc}; -use grid::{self, Grid}; -use term::{self, cell, Cell}; use super::Rgb; @@ -576,7 +577,7 @@ impl<'a> RenderApi<'a> { } } - pub fn render_cursor(&mut self, cursor: &grid::index::Cursor, glyph_cache: &mut GlyphCache) { + pub fn render_cursor(&mut self, cursor: &index::Cursor, glyph_cache: &mut GlyphCache) { if let Some(glyph) = glyph_cache.get(term::CURSOR_SHAPE, self) { let cell = Cell { c: term::CURSOR_SHAPE, |