diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-07-14 13:55:05 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-07-14 13:55:05 -0400 |
commit | 5998db47316af2c9cd7dbe6f9d62420de1726d6d (patch) | |
tree | fe897e802c347dd007c205edf3bffa1b17de385d | |
parent | 75f16e09b7cdc6f7323bc095c4401c9e5baae065 (diff) |
remove slow-path for non-tty stdout
-rw-r--r-- | more.c | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -132,19 +132,6 @@ int more(const char *file) } } - if (global.tty == NULL) { - /* tty is never opened if stdout is not a tty */ - int blank = 0; - while (getline(&line, &nline, mf.f) != -1) { - /* if (!((global.flags & FLAG_S) && blank)) { */ - printf("%s", line); - /* } */ - blank = !strcmp(line, "\n"); - } - fclose(mf.f); - return 1; - } - refresh(&mf); while (mf.f) { int c = fgetc(global.tty); |