aboutsummaryrefslogtreecommitdiff
path: root/contrib/less/prompt.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/less/prompt.c')
-rw-r--r--contrib/less/prompt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/less/prompt.c b/contrib/less/prompt.c
index 4f9689567e58..5fa6a5b07e8e 100644
--- a/contrib/less/prompt.c
+++ b/contrib/less/prompt.c
@@ -1,6 +1,6 @@
/* $FreeBSD$ */
/*
- * Copyright (C) 1984-2007 Mark Nudelman
+ * Copyright (C) 1984-2008 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
@@ -23,7 +23,6 @@
#include "position.h"
extern int pr_type;
-extern int hit_eof;
extern int new_file;
extern int sc_width;
extern int so_s_width, so_e_width;
@@ -197,7 +196,7 @@ cond(c, where)
case 'c':
return (hshift != 0);
case 'e': /* At end of file? */
- return (hit_eof);
+ return (eof_displayed());
case 'f': /* Filename known? */
return (strcmp(get_filename(curr_ifile), "-") != 0);
case 'l': /* Line number known? */