summaryrefslogtreecommitdiff
path: root/src/watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/watch.c')
-rw-r--r--src/watch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/watch.c b/src/watch.c
index b7ad005..f9a152d 100644
--- a/src/watch.c
+++ b/src/watch.c
@@ -774,8 +774,11 @@ static int run_command(char *restrict command, char **restrict command_argv)
reset_ansi();
if (flags & WATCH_COLOR)
attrset(A_NORMAL);
- find_eol(p);
}
+ if (!line_wrap && !eolseen)
+ {
+ find_eol(p);
+ }
}
fclose(p);