When pasting from stdin, print a message immediately after EOF, so

that hitting Ctrl-D twice is prevented.
This commit is contained in:
gbrandl 2009-01-03 14:51:01 +01:00
parent 59aa7374ea
commit 4ed502bb97

View File

@ -221,6 +221,7 @@ def compile_paste(filenames, langopt):
lang = langopt or ''
if not filenames:
data = read_file(sys.stdin)
print 'Pasting...'
if not langopt:
mime = get_mimetype(data, '') or ''
fname = ''