diff options
author | joerg <joerg@FreeBSD.org> | 1997-03-02 18:55:42 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1997-03-02 18:55:42 +0000 |
commit | 4bd9c1366cf389c6e4ded500fc9386b551a14831 (patch) | |
tree | 054dd7b6386fad4fc2091e8511e418bdd2a5355d /usr.bin/more/command.c | |
parent | fa46b708cbcd4000fb9a12f977ab8389effff4c0 (diff) | |
download | FreeBSD-src-4bd9c1366cf389c6e4ded500fc9386b551a14831.zip FreeBSD-src-4bd9c1366cf389c6e4ded500fc9386b551a14831.tar.gz |
Make more not immediately exit on a short file, if the -e option is
given. This makes more -e basically usable at all when your termcap
entry supports an alternate screen buffer (like xterm-r6).
I wonder whether we should make more -e the default. Oure more seems
to be the only one on the world with this funny behaviour.
2.2 candidate
Submitted by: dawes@rf900.physics.usyd.edu.au (David Dawes)
Diffstat (limited to 'usr.bin/more/command.c')
-rw-r--r-- | usr.bin/more/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/more/command.c b/usr.bin/more/command.c index f451604..2b8d3a4 100644 --- a/usr.bin/more/command.c +++ b/usr.bin/more/command.c @@ -174,7 +174,7 @@ prompt() repaint(); /* if no -e flag and we've hit EOF on the last file, quit. */ - if ((!quit_at_eof || short_file) && hit_eof && curr_ac + 1 >= ac) + if (!quit_at_eof && hit_eof && curr_ac + 1 >= ac) quit(); /* select the proper prompt and display it. */ |