From: ayin Date: Sat, 29 Dec 2007 14:40:09 +0000 (+0000) Subject: Remove scrollbar_len from rxvt_term and make it a local variable in X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=948eca51e868591e77172c88334e9e2fd667753c;p=dana%2Furxvt.git Remove scrollbar_len from rxvt_term and make it a local variable in scrollbar_show. --- diff --git a/src/rxvt.h b/src/rxvt.h index 750b527b..c8673691 100644 --- a/src/rxvt.h +++ b/src/rxvt.h @@ -1009,7 +1009,6 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen { last_bot, /* scrollbar last bottom position */ last_top, /* scrollbar last top position */ last_state, /* scrollbar last state */ - scrollbar_len, window_vt_x, window_vt_y, window_sb_x, diff --git a/src/scrollbar.C b/src/scrollbar.C index 0ff57d4a..e0a23ed0 100644 --- a/src/scrollbar.C +++ b/src/scrollbar.C @@ -147,6 +147,7 @@ rxvt_term::scrollbar_show (int update) int ret = 0; #ifdef HAVE_SCROLLBARS int top, bot, len, adj; + int scrollbar_len = 0; if (!scrollBar.state) return 0;