Skip to content

Commit

Permalink
hey
Browse files Browse the repository at this point in the history
  • Loading branch information
hatoo committed Mar 2, 2020
1 parent 72fd35d commit 98893d2
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions tests/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use termion::event::{Event, Key};

use accepted::core::Cursor;
use accepted::{config, core::buffer::RopeyCoreBuffer, core::CoreBuffer, Buffer, BufferMode};

use async_trait::async_trait;

#[async_trait(?Send)]
Expand All @@ -23,26 +23,6 @@ impl<'a, B: CoreBuffer> BufferModeExt for BufferMode<'a, B> {
}
}

/*
fn buffer_mode_from(init: &str) -> BufferMode<RopeyCoreBuffer> {
let syntax_parent = accepted::syntax::SyntaxParent::default();
let config = config::ConfigWithDefault::default();
let mut buf = Buffer::new(&syntax_parent, &config);
buf.core.set_string(init.into(), true);
BufferMode::new(buf)
}
fn buffer_mode_from_config(
config: &config::ConfigWithDefault,
init: &str,
) -> BufferMode<RopeyCoreBuffer> {
let syntax_parent = accepted::syntax::SyntaxParent::default();
let mut buf = Buffer::new(&syntax_parent, config);
buf.core.set_string(init.into(), true);
BufferMode::new(buf)
}
*/

async fn simple_run(init: &str, commands: &str) -> String {
let syntax_parent = accepted::syntax::SyntaxParent::default();
let config = config::ConfigWithDefault::default();
Expand Down

0 comments on commit 98893d2

Please sign in to comment.