This commit is contained in:
Kovid Goyal
2022-01-14 23:03:44 +05:30
parent 7a903adeea
commit 25e1edf52e

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