commit b4ce00d4c6bdf1c73717909a0b9535cc9e785ffc
parent f606cbe76f7b5a1ce885fa619d780951c77e1549
Author: Daniel Schoepe <daniel.schoepe@googlemail.com>
Date: Sun, 14 Mar 2010 17:07:05 +0100
Added slip_rows config option
This patch adds a slip_rows config option used by thread-view-mode
that passes the argument to scroll-mode, which already has that
functionality, but it was only used by completion-mode before.
The option controls how many lines of context are shown when scrolling
up/down.
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/sup.rb b/lib/sup.rb
@@ -264,7 +264,8 @@ else
:default_attachment_save_dir => "",
:sent_source => "sup://sent",
:poll_interval => 300,
- :wrap_width => 0
+ :wrap_width => 0,
+ :slip_rows => 0
}
begin
FileUtils.mkdir_p Redwood::BASE_DIR
diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb
@@ -111,7 +111,7 @@ EOS
## objects. @person_lines is a map from row #s to Person objects.
def initialize thread, hidden_labels=[], index_mode=nil
- super()
+ super :slip_rows => $config[:slip_rows]
@thread = thread
@hidden_labels = hidden_labels