move_view: fix view->offset overflow bug
authorJonas Fonseca <fonseca@diku.dk>
Tue, 29 May 2007 11:08:21 +0000 (13:08 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Tue, 29 May 2007 11:08:21 +0000 (13:08 +0200)
commita39653656755cc0d01165043922d6f38b2db2cf9
tree4daa0a5aab1a41d3285ad95cf151bc937f440221
parent0a0d891082ac72087026071ab30a39381da75da3
move_view: fix view->offset overflow bug

Reproducable by opening the tree view, then maximizing the blob view,
move up, and then closing the blob view, causing the view->offset to
have "wrapped around" and nothing to be displayed in the tree view.

The invalid update of view->offset only happend when moving
non-displayed views.  Instead use the checked scroll_steps variable
instead of the steps variable.  Add a guarding assert after the update.
tig.c