clix.archive: Print a newline if reading a line fails (the user pressed ^D)

Sat, 11 Aug 2012 09:25:11 +0200

author
Kim Alvefur <zash@zash.se>
date
Sat, 11 Aug 2012 09:25:11 +0200
changeset 92
a629b953780c
parent 91
7816f24d0fdc
child 93
8ab81c304073

clix.archive: Print a newline if reading a line fails (the user pressed ^D)

clix/archive.lua file | annotate | diff | comparison | revisions
--- a/clix/archive.lua	Sun Jul 29 23:58:39 2012 +0200
+++ b/clix/archive.lua	Sat Aug 11 09:25:11 2012 +0200
@@ -44,7 +44,7 @@
 				local fetch_next = opts.everything;
 				if opts.interactive and not fetch_next then
 					io.stderr:write "--More--"
-					fetch_next = io.read"*l";
+					fetch_next = io.read"*l" or print();
 				end
 				if fetch_next then
 					opts.after = result.last;

mercurial