repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: df249564c9d4d38d8c7f9cd335a8bf27904101d2:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit df249564c9d4d38d8c7f9cd335a8bf27904101d2
Author: Emanuele Giaquinta 
Date:   Thu Mar 28 09:21:46 2013 +0000

    Simplify.

diff --git a/src/screen.C b/src/screen.C
index 71f2b91074e87bb30c828f4ada48fbc80e953048..
index ..f36965afdaaa51b141e038cfa293b56372abc5b4 100644
--- a/src/screen.C
+++ b/src/screen.C
@@ -1242,20 +1242,16 @@ rxvt_term::scr_gotorc (int row, int col, int relative) NOTHROW
 void
 rxvt_term::scr_index (enum page_dirn direction) NOTHROW
 {
-  int dirn;
-
   want_refresh = 1;
   ZERO_SCROLLBACK ();

-  dirn = ((direction == UP) ? 1 : -1);
-
   screen.flags &= ~Screen_WrapNext;

   if ((screen.cur.row == screen.bscroll && direction == UP)
       || (screen.cur.row == screen.tscroll && direction == DN))
-    scr_scroll_text (screen.tscroll, screen.bscroll, dirn);
+    scr_scroll_text (screen.tscroll, screen.bscroll, direction);
   else
-    screen.cur.row += dirn;
+    screen.cur.row += direction;

   clamp_it (screen.cur.row, 0, nrow - 1);
   selection_check (0);

-----END OF PAGE-----