[vte] widget: Fix misleading comments in cursor_down()



commit e5b017af473503f74724cb3210846575900fa486
Author: Egmont Koblinger <egmont gmail com>
Date:   Fri May 31 13:22:51 2019 +0200

    widget: Fix misleading comments in cursor_down()

 src/vte.cc | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 920ab7e9..d523367e 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -2687,8 +2687,7 @@ Terminal::cursor_down(bool explicit_sequence)
                                 * line and scrolling the area up. */
                                m_screen->insert_delta++;
                                 m_screen->cursor.row++;
-                               /* update start and end, as they are relative
-                                * to insert_delta. */
+                                /* Update start and end, too. */
                                start++;
                                end++;
                                 ring_insert(m_screen->cursor.row, false);
@@ -2699,9 +2698,7 @@ Terminal::cursor_down(bool explicit_sequence)
                                /* Force scroll. */
                                adjust_adjustments();
                        } else {
-                               /* If we're at the bottom of the scrolling
-                                * region, add a line at the top to scroll the
-                                * bottom off. */
+                                /* Scroll by removing a line and inserting a new one. */
                                ring_remove(start);
                                ring_insert(end, true);
                                /* Update the display. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]