mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
Keep track of return value from original widget (#135)
This commit is contained in:
parent
2acf25e065
commit
1d4f7e157e
8 changed files with 156 additions and 0 deletions
|
|
@ -68,4 +68,17 @@ testCursorStaysInBuffer() {
|
|||
"$POSTDISPLAY"
|
||||
}
|
||||
|
||||
testRetval() {
|
||||
stub_and_eval \
|
||||
_zsh_autosuggest_invoke_original_widget \
|
||||
'return 1'
|
||||
|
||||
_zsh_autosuggest_widget_partial_accept 'original-widget'
|
||||
|
||||
assertEquals \
|
||||
'Did not return correct value from original widget' \
|
||||
'1' \
|
||||
"$?"
|
||||
}
|
||||
|
||||
run_tests "$0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue