Bugfixes for message buffer
commitf94197673133fa15d5baf67628455e0bc076d5ae
authorPhilip Pavlick <philip@swash.link>
Sat, 28 Jul 2018 22:40:30 +0000 (28 18:40 -0400)
committerPhilip Pavlick <philip@swash.link>
Sat, 28 Jul 2018 22:40:30 +0000 (28 18:40 -0400)
tree7ae4d23558788cff9967f2f10b46e778547c2820
parent4044faace07b3f1fdbe51eb283ca405ce8c70764
Bugfixes for message buffer

The message buffer has been fixed.  It no longer relies on knowing the
length of the meassge buffer.

The message history also now works, being kept in a separate array that
will allow access to previous messages while also being truncated any
time a message would cause the message history buffer to exceed
MAX_MESSAGE_BUFFER.

Additionally, a warning caused by an unreachable statement in
CursesIO.getcommand() has been fixed.

The keymap taken in by SpelunkIO.getcommand is no longer a global
variable, but a function parameter.
Signed-off-by: Philip Pavlick <philip@swash.link>
src/global.d
src/iocurses.d
src/iomain.d
src/msg.d
src/spelunk.d