1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-28 04:05:12 +01:00

53087: don't produce spurious error when zpty is missing

This commit is contained in:
Oliver Kiddle 2024-09-14 19:43:26 +02:00
parent 5ffaffdea3
commit c8f0174289
2 changed files with 23 additions and 20 deletions

View file

@ -1,5 +1,8 @@
2024-09-14 Oliver Kiddle <opk@zsh.org>
* 53087: Test/X05zleincarg.ztst: don't produce spurious error
when zpty is missing
* 53086: configure.ac: change flags used for building dynamic
modules on Haiku OS

View file

@ -5,29 +5,29 @@
if ( zmodload zsh/zpty 2>/dev/null ); then
. $ZTST_srcdir/comptest
comptestinit -v -z $ZTST_testdir/../Src/zsh
zpty_run '
autoload -Uz incarg
for name in {,vim-,vim-backward-}{,sync-}{inc,dec}arg; do
zle -N "$name" incarg
done
bindkey -v "^N" incarg
bindkey -v "^P" decarg
bindkey -v "^F" sync-incarg
bindkey -v "^B" sync-decarg
bindkey -a "^N" vim-incarg
bindkey -a "^P" vim-decarg
bindkey -a "^F" vim-sync-incarg
bindkey -a "^B" vim-sync-decarg
bindkey -a "^E" vim-backward-incarg
bindkey -a "^Y" vim-backward-decarg
unset TMUX_PANE ITERM_SESSION_ID
tmux() {
echo "$TMUX_PANE"
}
'
else
ZTST_unimplemented="the zsh/zpty module is not available"
fi
zpty_run '
autoload -Uz incarg
for name in {,vim-,vim-backward-}{,sync-}{inc,dec}arg; do
zle -N "$name" incarg
done
bindkey -v "^N" incarg
bindkey -v "^P" decarg
bindkey -v "^F" sync-incarg
bindkey -v "^B" sync-decarg
bindkey -a "^N" vim-incarg
bindkey -a "^P" vim-decarg
bindkey -a "^F" vim-sync-incarg
bindkey -a "^B" vim-sync-decarg
bindkey -a "^E" vim-backward-incarg
bindkey -a "^Y" vim-backward-decarg
unset TMUX_PANE ITERM_SESSION_ID
tmux() {
echo "$TMUX_PANE"
}
'
%test