From 948eca51e868591e77172c88334e9e2fd667753c Mon Sep 17 00:00:00 2001 From: ayin Date: Sat, 29 Dec 2007 14:40:09 +0000 Subject: [PATCH] Remove scrollbar_len from rxvt_term and make it a local variable in scrollbar_show. --- src/rxvt.h | 1 - src/scrollbar.C | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1