kraanzu / smassh

Smassh your Keyboard, TUI Edition
GNU General Public License v3.0
1.41k stars 50 forks source link

[BUG] Hitting backspace multiple times does not delete characters #65

Closed DylanHojnoski closed 10 months ago

DylanHojnoski commented 10 months ago

Describe the bug 🐛

When you hit the backspace the first time it deletes the character but if you hit it multiple times it only moves the cursor without deleting the characters. This results in the cursor being behind the typed text and when you try to finish a word count type test it crashes with an index out of bounds error.

To Reproduce 🐣

  1. open the program
  2. set to words mode
  3. start typing
  4. hit backspace a few of time
  5. continue typing until you complete it

Expected behavior 🤔

The characters should be deleted when you hit backspace not just move the cursor.

Screenshots 🧐

20240204_11h10m58s_grim

20240204_11h12m16s_grim

Your operating system name

Linux

Your operating system version

Fedora 38

Additional context 📝

No response

feschber commented 10 months ago

64

kraanzu commented 10 months ago

Hey I've pushed a fix! Can you quickly do install and recheck ? :)

kraanzu commented 10 months ago

I'll close this issue as this is fixed now. Feel free to re-open if the issue still persists :D

github-actions[bot] commented 10 months ago

Did we solve your problem?

Glad we could help! Don't forget to star the repository! – @kraanzu