*** empty log message ***
authorroot <root>
Thu, 22 Dec 2005 18:36:55 +0000 (18:36 +0000)
committerroot <root>
Thu, 22 Dec 2005 18:36:55 +0000 (18:36 +0000)
src/screen.C

index 236b0ac185e455987f33045226ddb7658367a9b1..875de08ed65a55cb923a5aa4e88979fd7ef80249 100644 (file)
@@ -331,10 +331,12 @@ rxvt_term::scr_reset ()
 
                       prow = MOD (p + prow, prev_total_rows);
 
-                      // we only adjust the cursor _row_, as this seems to upset
-                      // applications/shells/readline least.
+                      // we only adjust the cursor _row_ and put it into
+                      // the topmost line of "long line" it was in, as
+                      // this seems to upset applications/shells/readline
+                      // least.
                       if (prow == ocur.row)
-                        screen.cur.row = qrow - (total_rows - nrow);
+                        screen.cur.row = q - (total_rows - nrow);
 
                       line_t &pline = old_buf [prow];