We now output $COLUMNS - 8 characters of the string and a newline.
This is similar to the behaviour in ed(1).
Discussed with and OK schwarze@
-/* $OpenBSD: main.c,v 1.36 2017/12/13 16:06:34 millert Exp $ */
+/* $OpenBSD: main.c,v 1.37 2018/07/11 06:57:18 martijn Exp $ */
/*-
* Copyright (c) 1992 Diomidis Spinellis.
termwidth = win.ws_col;
if (termwidth == 0)
termwidth = 80;
+ if (termwidth <= 8)
+ termwidth = 1;
+ else
+ termwidth -= 8;
if (inplace != NULL) {
if (pledge("stdio rpath wpath cpath fattr chown", NULL) == -1)