mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-12-29 16:25:35 +01:00
53087: don't produce spurious error when zpty is missing
This commit is contained in:
parent
5ffaffdea3
commit
c8f0174289
2 changed files with 23 additions and 20 deletions
|
@ -1,5 +1,8 @@
|
||||||
2024-09-14 Oliver Kiddle <opk@zsh.org>
|
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
|
* 53086: configure.ac: change flags used for building dynamic
|
||||||
modules on Haiku OS
|
modules on Haiku OS
|
||||||
|
|
||||||
|
|
|
@ -5,29 +5,29 @@
|
||||||
if ( zmodload zsh/zpty 2>/dev/null ); then
|
if ( zmodload zsh/zpty 2>/dev/null ); then
|
||||||
. $ZTST_srcdir/comptest
|
. $ZTST_srcdir/comptest
|
||||||
comptestinit -v -z $ZTST_testdir/../Src/zsh
|
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
|
else
|
||||||
ZTST_unimplemented="the zsh/zpty module is not available"
|
ZTST_unimplemented="the zsh/zpty module is not available"
|
||||||
fi
|
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
|
%test
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue