-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Need to prevent zpty feature detection from HUPing existing zptys
- Loading branch information
1 parent
c959408
commit c4bfd8e
Showing
3 changed files
with
7 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
describe 'a running zpty command' do | ||
let(:before_sourcing) { -> { session.run_command('zmodload zsh/zpty && zpty -b kitty cat') } } | ||
|
||
it 'is not affected by running zsh-autosuggestions' do | ||
session.run_command('zmodload zsh/zpty') | ||
session.run_command('zpty -b kitty cat') | ||
session.run_command('zpty -w kitty cat') | ||
sleep 1 | ||
session.run_command('zpty -r kitty') | ||
sleep 1 # Give a little time for precmd hooks to run | ||
session.run_command('zpty -t kitty; echo $?') | ||
|
||
wait_for(session.content).to end_with("\ncat") | ||
wait_for(session.content).to end_with("\n0") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters