TBS1996 / speki

flashcard app in your terminal
GNU General Public License v2.0
496 stars 18 forks source link

Missing boundcheck for `self.cursor.row` in `textinput.rs` causes panic #9

Closed geri1701 closed 2 years ago

geri1701 commented 2 years ago

If a new topic is created and the entry made is removed with backspace, a panic occurs. thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0' src/utils/widgets/textinput.rs:459:12

TBS1996 commented 2 years ago

Thanks a lot! I fixed it now, I need to clean up the textinput code but for now a quickfix worked.

It'll go live in 0.1.17