vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 26f5f7c2a840c6185d5c90b6635c9eef4ad72755
parent ea8e6e3ffa8108505be12f0cd418467724be6359
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat, 25 Oct 2014 16:17:05 +0200

Treat file read from stdin as unmodified

Diffstat:
Mtext.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/text.c b/text.c @@ -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;