Skip to content

Commit

Permalink
chore: update tui-textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
delehef committed Nov 20, 2023
1 parent 7fe0848 commit fa5d4ff
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
23 changes: 12 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["arbitrary_precision"] }
sorbus = "0.9"
thiserror = "1.0.38"
ratatui-textarea = { version = "0.4", optional = true }
tui-textarea = { version = "0.4", optional = true }
ellipse = "0.2.0"
ark-ff = "0.4.2"
memmap2 = "0.9.0"
Expand All @@ -63,7 +63,7 @@ cli = ["dep:clap-verbosity-flag", "dep:clap"]
conflater = []
default = ["interactive", "cli", "exporters", "parser", "inspector"]
exporters = ["dep:handlebars"]
inspector = ["dep:ratatui", "dep:ratatui-textarea", "cli", "parser"]
inspector = ["dep:ratatui", "dep:tui-textarea", "cli", "parser"]
interactive = ["dep:indicatif"]
parser = ["dep:pest", "dep:pest_derive"]
postgres = ["dep:postgres"]
Expand Down
1 change: 0 additions & 1 deletion src/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use serde_json::Value;
#[cfg(all(target_arch = "x86_64", target_feature = "avx"))]
use simd_json::BorrowedValue as Value;
#[cfg(all(target_arch = "x86_64", target_feature = "avx"))]
use std::io::Read;
use std::{
fs::File,
io::{BufReader, Read, Seek},
Expand Down
2 changes: 1 addition & 1 deletion src/inspect/widgets/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use ratatui::{
style::{Color, Style},
widgets::{Block, Borders},
};
use ratatui_textarea::{Input, Key, TextArea};
use tui_textarea::{Input, Key, TextArea};

use crate::inspect::StdTerminal;

Expand Down
4 changes: 2 additions & 2 deletions src/inspect/widgets/regexp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use ratatui::{
style::{Color, Style},
widgets::{Block, Borders},
};
use ratatui_textarea::{Input, Key, TextArea};
use regex_lite::Regex;
use tui_textarea::{CursorMove, Input, Key, TextArea};

use crate::inspect::StdTerminal;

Expand All @@ -18,7 +18,7 @@ impl RegexpInput<'_> {
title: title.to_owned(),
input: TextArea::from([content]),
};
r.input.move_cursor(ratatui_textarea::CursorMove::End);
r.input.move_cursor(CursorMove::End);
r
}

Expand Down
4 changes: 2 additions & 2 deletions src/inspect/widgets/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ use ratatui::{
style::{Color, Style},
widgets::{Block, Borders},
};
use ratatui_textarea::{Input, Key, TextArea};
use std::collections::HashMap;
use tui_textarea::{CursorMove, Input, Key, TextArea};

pub struct ScanInput<'a> {
module: String,
Expand All @@ -26,7 +26,7 @@ impl<'a> ScanInput<'a> {
columns,
input: TextArea::from([content]),
};
r.input.move_cursor(ratatui_textarea::CursorMove::End);
r.input.move_cursor(CursorMove::End);
r
}

Expand Down

0 comments on commit fa5d4ff

Please sign in to comment.