diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-10-25 16:17:05 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-10-25 16:17:05 +0200 |
| commit | a99e1540c389d6c716bfd5bb8c407831d5138651 (patch) | |
| tree | e0a1bdbe0f1e39fc5e4d9884bd2ec2617a6c6a63 /text.c | |
| parent | 62b2ca7c9231392ac2305043d55b6ab66f1c65e2 (diff) | |
| download | vis-a99e1540c389d6c716bfd5bb8c407831d5138651.tar.gz vis-a99e1540c389d6c716bfd5bb8c407831d5138651.tar.xz | |
Treat file read from stdin as unmodified
Diffstat (limited to 'text.c')
| -rw-r--r-- | text.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -753,6 +753,7 @@ Text *text_load_fd(int fd) { char buf[1024]; for (ssize_t len = 0; (len = read(fd, buf, sizeof buf)) > 0;) text_insert(txt, text_size(txt), buf, len); + txt->saved_action = txt->undo; text_snapshot(txt); txt->fd = fd; return txt; |
