Skip to content

Commit

Permalink
Fix tab completion output with OTP 26
Browse files Browse the repository at this point in the history
In OTP 26 requires explicitly defining `expand_below: false`
when starting the group and defaults to expanding below the prompt line.

[`ssh_cli.erl` now defaults to `expand_below: false`](erlang/otp@81562f7#diff-d1641a7f3fc9ba8d592c295bc91b373637dd6660ea95a8441f501df3792642f7) and so this change matches that setting since expanding below is currently
not supported.

This is the current behavior in previous OTP versions
  • Loading branch information
jjcarstens committed Jul 15, 2023
1 parent 726c1b0 commit fdb886f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/extty.ex
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ defmodule ExTTY do
defp start_shell(state) do
%{
state
| group: :group.start(self(), shell_spawner(state), [{:echo, true}]),
| group:
:group.start(self(), shell_spawner(state), [{:echo, true}, {:expand_below, false}]),
buf: @empty_buf
}
end
Expand Down

0 comments on commit fdb886f

Please sign in to comment.