diff options
author | Keith Simmons | 2021-06-25 03:58:15 +0000 |
---|---|---|
committer | GitHub | 2021-06-25 03:58:15 +0000 |
commit | 4418e17547562e211952b9e8585916e04b858b3b (patch) | |
tree | 8427958809392969b035967c1c69e9507207d00e /helix-tui/src/terminal.rs | |
parent | 74cc4b4a49e05462b2b543737ad4dc32e2265794 (diff) |
reverse the dependency between helix-tui and helix-view (#366)
* reverse the dependency between helix-tui and helix-view by moving a fiew types to view
* fix tests
* clippy and format fixes
Co-authored-by: Keith Simmons <keithsim@microsoft.com>
Diffstat (limited to 'helix-tui/src/terminal.rs')
-rw-r--r-- | helix-tui/src/terminal.rs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/helix-tui/src/terminal.rs b/helix-tui/src/terminal.rs index b9b2437a..4637eb71 100644 --- a/helix-tui/src/terminal.rs +++ b/helix-tui/src/terminal.rs @@ -1,4 +1,5 @@ -use crate::{backend::Backend, buffer::Buffer, layout::Rect}; +use crate::{backend::Backend, buffer::Buffer}; +use helix_view::graphics::{CursorKind, Rect}; use std::io; #[derive(Debug, Clone, PartialEq)] @@ -8,19 +9,6 @@ enum ResizeBehavior { Auto, } -#[derive(Debug)] -/// UNSTABLE -pub enum CursorKind { - /// █ - Block, - /// | - Bar, - /// _ - Underline, - /// Hidden cursor, can set cursor position with this to let IME have correct cursor position. - Hidden, -} - #[derive(Debug, Clone, PartialEq)] /// UNSTABLE pub struct Viewport { |