Skip to content

Commit

Permalink
Disable line wrap on single line views
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Reiter committed Oct 18, 2024
1 parent 9f42288 commit 839b40f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wireman/src/widgets/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ pub fn view_unselected<S: Into<String>>(state: &mut EditorState, title: S) -> Ed
/// Returns the editors view for a single line editor when selected.
pub fn view_single_selected<S: Into<String>>(state: &mut EditorState, title: S) -> EditorView {
let theme = Theme::global();
EditorView::new(state).theme(
EditorView::new(state).wrap(false).theme(
EditorTheme::default()
.block(
Block::new()
Expand All @@ -359,7 +359,7 @@ pub fn view_single_selected<S: Into<String>>(state: &mut EditorState, title: S)
/// Returns the editors view for a single line editor when unselected.
pub fn view_single_unselected<S: Into<String>>(state: &mut EditorState, title: S) -> EditorView {
let theme = Theme::global();
EditorView::new(state).theme(
EditorView::new(state).wrap(false).theme(
EditorTheme::default()
.block(
Block::new()
Expand Down

0 comments on commit 839b40f

Please sign in to comment.