diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-17 22:20:20 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-17 22:20:20 +0000 |
| commit | c14d466a515e6eaa635883ec79d0da6d5bb038a0 (patch) | |
| tree | 5beef325e042de63b64f6eee40005363f1a11a0c /io.c | |
| parent | ef6ec88ccb0db365facedb0365c8cbf5664c5391 (diff) | |
| download | ruby-c14d466a515e6eaa635883ec79d0da6d5bb038a0.tar.gz ruby-c14d466a515e6eaa635883ec79d0da6d5bb038a0.tar.xz ruby-c14d466a515e6eaa635883ec79d0da6d5bb038a0.zip | |
* io.c (io_fwrite): always flush IO on tty, even without newlines.
[ruby-core:15107]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -693,7 +693,7 @@ io_fwrite(VALUE str, rb_io_t *fptr) } if ((fptr->mode & FMODE_SYNC) || (fptr->wbuf && fptr->wbuf_capa <= fptr->wbuf_len + len) || - ((fptr->mode & FMODE_TTY) && memchr(RSTRING_PTR(str)+offset, '\n', len))) { + (fptr->mode & FMODE_TTY)) { /* xxx: use writev to avoid double write if available */ if (fptr->wbuf_len && fptr->wbuf_len+len <= fptr->wbuf_capa) { if (fptr->wbuf_capa < fptr->wbuf_off+fptr->wbuf_len+len) { |
