Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: key delays in zle tests (was fix vi-indent and vi-swap-case)
X02zlevi.ztst now fails on MacOSX and FreeBSD as follows.
Increasing the timeout in 'read -t 0.011' didn't work.
*** 1,3 ****
! BUFFER: i
!
! CURSOR: 2
--- 1,2 ----
! BUFFER: aIo
! CURSOR: 3
Test ./X02zlevi.ztst failed: output differs from expected as shown above for:
zletest $'\e' $'~aI\e' $'~o\e' \~
Was testing: swap case on a blank line
The following simple workaround seems to work.
If this is applied the delay by 'read -t ...' is not necessary
(on Mac, FreeBSD and Linux).
diff --git a/Test/comptest b/Test/comptest
index c67237a..f23d813 100644
--- a/Test/comptest
+++ b/Test/comptest
@@ -89,6 +89,7 @@ bindkey "^D" list-choices-with-report
bindkey "^Z" comp-finish
bindkey "^X" zle-finish
bindkey -a "^X" zle-finish
+bindkey -r "\E~"
'
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author