This commit is contained in:
Kovid Goyal 2022-01-14 23:03:44 +05:30
parent 7a903adeea
commit 25e1edf52e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -87,7 +87,7 @@ _ksi_main() {
builtin local limit
# Send all words up to the word the cursor is currently on
builtin let limit=1+$COMP_CWORD
src=$(builtin printf "%s\n" "${COMP_WORDS[@]: 0:$limit}" | command kitty +complete bash)
src=$(builtin printf "%s\n" "${COMP_WORDS[@]:0:$limit}" | command kitty +complete bash)
if [[ $? == 0 ]]; then
builtin eval ${src}
fi