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/term.rs | |
parent | 63098f210e142453e14158a62c6fe0116d5fb94f (diff) | |
download | r-alacritty-6639e6f24fab269f23392b11e566ef0a29ca163b.tar.gz r-alacritty-6639e6f24fab269f23392b11e566ef0a29ca163b.tar.bz2 r-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/term.rs')
-rw-r--r-- | src/term.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/term.rs b/src/term.rs index 2c30812b..86908d33 100644 --- a/src/term.rs +++ b/src/term.rs @@ -18,7 +18,9 @@ use std::fmt; use ansi::{self, Attr}; use grid::{Grid, ClearRegion}; +use index::{Cursor, Column, Line}; use tty; + use ::Rgb; /// coerce val to be between min and max @@ -122,8 +124,6 @@ pub const DEFAULT_FG: Rgb = Rgb { r: 0xea, g: 0xea, b: 0xea}; pub const DEFAULT_BG: Rgb = Rgb { r: 0, g: 0, b: 0}; pub const TAB_SPACES: usize = 8; -use grid::index::{Cursor, Column, Line}; - pub struct Term { /// The grid grid: Grid<Cell>, |