on master help sign in
remove unused import
8681d47Jan Hrastnik
editor.rsnew file

No changes to the content.

helix-term/src/editor.rs+3−5
@@ -1,3 +1,5 @@
1+use crate::{keymap, Args};
2+use anyhow::Error;
1use crossterm::{
3use crossterm::{
2 cursor,
4 cursor,
3 cursor::position,
5 cursor::position,
@@ -7,15 +9,11 @@ use crossterm::{
7 terminal::{self, disable_raw_mode, enable_raw_mode},
9 terminal::{self, disable_raw_mode, enable_raw_mode},
8};
10};
9use futures::{future::FutureExt, select, StreamExt};
11use futures::{future::FutureExt, select, StreamExt};
12+use helix_core::{state::coords_at_pos, Buffer, State};
10use std::io::{self, stdout, Write};
13use std::io::{self, stdout, Write};
11use std::path::PathBuf;
14use std::path::PathBuf;
12use std::time::Duration;
15use std::time::Duration;
13
16
14−use anyhow::Error;
15−
16−use crate::{keymap, Args};
17−use helix_core::{state::coords_at_pos, Buffer, State};
18−
19pub struct BufferComponent<'a> {
17pub struct BufferComponent<'a> {
20 x: u16,
18 x: u16,
21 y: u16,
19 y: u16,
helix-term/src/keymap.rs−1
@@ -5,7 +5,6 @@ use crossterm::{
5};
5};
6use helix_core::commands::{self, Command};
6use helix_core::commands::{self, Command};
7use std::collections::HashMap;
7use std::collections::HashMap;
8−use std::io::{stdout, Write};
9
8
10// Kakoune-inspired:
9// Kakoune-inspired:
11// mode = {
10// mode = {