]> git.cameronkatri.com Git - bsdgames-darwin.git/commit
Avoid messing up the display when too many letters are guessed at once.
authordholland <dholland@NetBSD.org>
Sun, 12 Jul 2020 02:34:54 +0000 (02:34 +0000)
committerdholland <dholland@NetBSD.org>
Sun, 12 Jul 2020 02:34:54 +0000 (02:34 +0000)
commit41ea0dbfd0fa937c96c965324e8f01aa9864130e
tree8d6917c151062f62330c51b73ffc7e8f60fc46a2
parentdf5cc7cf1cf61077ac0dcd2b376e61b3ed7fc388
Avoid messing up the display when too many letters are guessed at once.

The field to put them in was made 26 characters wide... but includes
the string "Guessed: ". So if you get to 17 it wraps to the next line
and clreol()'s it. Instead, when reaching this point step on the
"Guessed:" string instead.

Reported by phil@.
hangman/prdata.c