Skip to content

typioca crashes when cached cursor is out-of-bounds #186

@bloznelis

Description

@bloznelis

When deleting local words' configuration, these cursors can get out-of-sync:

jq '.TestSettingCursors' ~/.cache/typioca/typioca.conf

{
  "TimerTimeCursor": 0,
  "TimerWordlistCursor": 0,
  "WordCountCursor": 0,
  "WordCountWordlistCursor": 0,
  "SentenceCountCursor": 0,
  "SentenceCountWordlistCursor": 0
}

Make sure we fallback to 0 if any of these are out-of-bounds.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions