Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Apr 20, 2024
1 parent 5c983cf commit 1b6793e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/edit.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crossterm::event::KeyCode;
use nuon::{from_nuon, to_nuon};
use ratatui::{
prelude::Rect,
style::Style,
Expand All @@ -8,6 +7,7 @@ use ratatui::{
};

use nu_protocol::{Span, Value};
use nuon::{from_nuon, to_nuon, ToStyle};

use crate::config::Config;

Expand Down Expand Up @@ -36,7 +36,7 @@ impl Editor {
pub(super) fn from_value(value: &Value) -> Self {
Self {
// NOTE: `value` should be a valid [`Value`] and thus the conversion should never fail
buffer: to_nuon(value, true, None, None, None).unwrap(),
buffer: to_nuon(value, ToStyle::Raw, None).unwrap(),
cursor_position: (0, 0),
width: 0,
}
Expand Down

0 comments on commit 1b6793e

Please sign in to comment.