Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
  • Loading branch information
frazze-jobb committed Sep 6, 2023
2 parents 640377c + 69694ef commit 8bcdeda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/kernel/src/prim_tty.erl
Original file line number Diff line number Diff line change
Expand Up @@ -596,10 +596,10 @@ handle_request(State, redraw_prompt) ->
handle_request(State = #state{unicode = U, cols = W}, redraw_prompt_pre_deleted) ->
{Movement, TextInView, EverythingFitsInView} = in_view(State),
{_, NewPrompt} = handle_request(State, new_prompt),
{Redraw, RedrawState} = insert_buf(NewPrompt#state{xn = false}, unicode:characters_to_binary(TextInView)),
{Redraw, RedrawState} = insert_buf(NewPrompt, unicode:characters_to_binary(TextInView)),
{Output, _} = case State#state.buffer_expand of
undefined ->
{[encode(Redraw, U), xnfix(RedrawState, RedrawState#state.buffer_before), Movement], RedrawState};
{[encode(Redraw, U), xnfix(RedrawState), Movement], RedrawState};
BufferExpand ->
%% If everything fits in the view, then we output the expand buffer after the whole expression.
Last = last_or_empty(State#state.lines_after),
Expand Down

0 comments on commit 8bcdeda

Please sign in to comment.