about summary refs log tree commit diff stats
path: root/src/ui/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/core.c')
-rw-r--r--src/ui/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index c338b4e4..6f82d558 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -2082,14 +2082,14 @@ _win_handle_page(const wint_t * const ch)
 
         // went past end, show full screen
         else if (*page_start >= y)
-            *page_start = y - page_space;
+            *page_start = y - page_space - 1;
 
         current->paged = 1;
         win_update_virtual(current);
     }
 
-    // switch off page if last line visible
-    if ((y-1) - *page_start == page_space) {
+    // switch off page if last line and space line visible
+    if ((y) - *page_start == page_space) {
         current->paged = 0;
     }
 }
s Booth <boothj5@gmail.com> 2012-09-09 22:49:39 +0100 Fixed upgrade script to work on cygwin' href='/danisanti/profani-tty/commit/upgrade.sh?id=d9cc580c910ec765f583ff9dc64b9a7fe7126895'>d9cc580c ^
3f4f08ee ^
d9cc580c ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60