Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kl4rry committed Apr 18, 2024
1 parent cd19295 commit 4f96408
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/ferrite-tui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ pub fn run(args: &Args) -> Result<()> {
let mut text = String::new();
stdin.read_to_string(&mut text)?;
let buffer = tui_app.new_buffer_with_text(&text);
let (_, height) = crossterm::terminal::size()?;
buffer.set_view_lines(height.saturating_sub(2).into());
buffer.goto(args.line as i64);
}

Expand Down

0 comments on commit 4f96408

Please sign in to comment.