Code

Make sense of the comment about view->win height
authorJonas Fonseca <fonseca@diku.dk>
Wed, 17 May 2006 21:52:45 +0000 (23:52 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Wed, 17 May 2006 21:52:45 +0000 (23:52 +0200)
tig.c

diff --git a/tig.c b/tig.c
index c50bbf09d3bde6d45f0eaebdce7051a0be41c9bf..e57206c75d31296f3dda42f73a10922bb67ae2e0 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -773,9 +773,9 @@ resize_display(void)
        offset = 0;
 
        foreach_view (view, i) {
-               /* Keep the size of the all view windows one lager than is
-                * required. This makes current line management easier when the
-                * cursor will go outside the window. */
+               /* Keep the height of all view->win windows one larger than is
+                * required so that the cursor can wrap-around on the last line
+                * without scrolling the window. */
                if (!view->win) {
                        view->win = newwin(view->height + 1, 0, offset, 0);
                        if (!view->win)