Skip to content

Commit

Permalink
Trim leading whitespace from stdin
Browse files Browse the repository at this point in the history
There is an issue with showing leading newlines in the textarea and I don't see an obvious fix for it
  • Loading branch information
prasmussen committed Aug 5, 2024
1 parent f40498c commit 17e7963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glot_core/src/components/stdin_modal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub fn update(msg: &Msg, state: &mut State) -> Result<Event, String> {
match msg {
Msg::StdinChanged(captured) => {
if let State::Open(model) = state {
model.value = captured.value();
model.value = captured.value().trim_start().to_string();
}

Ok(Event::None)
Expand Down

0 comments on commit 17e7963

Please sign in to comment.