Add a viewwindow call before reading a command.
commitb7c54b244eaba92eddf2a2d0cd3b765e9dc06646
authorRobert Vollmert <rvollmert@gmx.net>
Sun, 14 Mar 2010 19:03:25 +0000 (14 20:03 +0100)
committerJesse Luehrs <doy@tozt.net>
Wed, 17 Mar 2010 06:59:58 +0000 (17 01:59 -0500)
tree9f7a3ca4add213622b2864827701bbfe6f35e236
parentc4ff7322521d5f2578b7665b57f83f42ff80eba4
Add a viewwindow call before reading a command.

This makes sure that the view is up-to-date when prompting for input. In
particular, viewwindow() is called after handle_delay(), so view changes
caused by delays will show.

Fixes issue #1066 (armour with see invis not causing the view to update
on time).
(cherry picked from commit dd408f933a3ec50c96e7d256e0b173276d2b006c)
crawl-ref/source/main.cc