Commit 45834834 45834834955eaf18d011a4e1970f53c8a677c4af by Sergey Poznyakoff

removed z_lines() in favor of util_screen_lines().

1 parent f19d700c
Showing 1 changed file with 1 additions and 12 deletions
...@@ -17,17 +17,6 @@ ...@@ -17,17 +17,6 @@
17 17
18 #include "mail.h" 18 #include "mail.h"
19 19
20 static unsigned int
21 z_lines()
22 {
23 struct mail_env_entry *ep = util_find_env("screen");
24 size_t n;
25
26 if (ep && ep->value && (n = atoi(ep->value)) != 0)
27 return n;
28 return util_getlines();
29 }
30
31 /* Scroll directions */ 20 /* Scroll directions */
32 #define D_BWD -1 /* z- */ 21 #define D_BWD -1 /* z- */
33 #define D_NONE 0 /* z. */ 22 #define D_NONE 0 /* z. */
...@@ -117,7 +106,7 @@ int ...@@ -117,7 +106,7 @@ int
117 mail_z (int argc, char **argv) 106 mail_z (int argc, char **argv)
118 { 107 {
119 unsigned int i, nlines; 108 unsigned int i, nlines;
120 unsigned int pagelines = z_lines(); 109 unsigned int pagelines = util_screen_lines();
121 int count; 110 int count;
122 int dir; 111 int dir;
123 112
......