Skip to content

Commit

Permalink
Do not regenerate word/char indexes on same text
Browse files Browse the repository at this point in the history
  • Loading branch information
jpablobr committed Jan 10, 2021
1 parent 368a6f5 commit e72472d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions monkeytype.el
Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,13 @@ This is unless the char doesn't belong to any word as defined by the
(defun monkeytype--typed-text (run)
"Typed text for RUN."
(monkeytype--utils-index-chars run)
(monkeytype--utils-index-words)
(monkeytype--utils-index-chars-to-words)

(unless monkeytype--words
(monkeytype--utils-index-words))

(unless monkeytype--chars-to-words
(monkeytype--utils-index-chars-to-words))

(format
"\n%s\n\n"
(monkeytype--typed-text-to-string
Expand Down

0 comments on commit e72472d

Please sign in to comment.