console: remove margin_bottom cache
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 1 Apr 2012 16:17:45 +0000 (18:17 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 1 Apr 2012 16:17:45 +0000 (18:17 +0200)
commita0109ffabcb0d7cc4a9550323516fc183ebddff9
tree9e0e8c96dc2e6d8bec00feacf813ac548b02953a
parent9c2b83805435b3219e8e0f4d102c8ec25220ec13
console: remove margin_bottom cache

margin_bottom was always the last index of the scroll-region, in contrast
to cells->mbottom_y which is the bottom margin size. However, this cache
is inconvenient so this replaces all calls to margin_bottom with a correct
immediate calculation of the bottom margin.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/console.c