From fdb886f5a72a5a607391cfbb4e0bca41cf529fdc Mon Sep 17 00:00:00 2001 From: Jon Carstens Date: Sat, 15 Jul 2023 15:31:05 -0600 Subject: [PATCH] Fix tab completion output with OTP 26 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`](https://github.com/erlang/otp/commit/81562f74ad1c2d7f2a814935976f0a8e98003687#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 --- lib/extty.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/extty.ex b/lib/extty.ex index 69acbaf..0f2d712 100644 --- a/lib/extty.ex +++ b/lib/extty.ex @@ -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