fiatjaf / jiq

jid on jq - interactive JSON query tool using jq expressions
MIT License
917 stars 32 forks source link

slice bounds out of range bug fix #28

Closed unique1o1 closed 2 years ago

unique1o1 commented 2 years ago

when the cursor is on the 0 index and the user keeps on deleting the characters on the right until there are no more characters left, slice bounds out of range occurs.

This PR fixes the issue.