procps/procps-v3.3.3-w-simply-work.diff

24 lines
739 B
Diff
Raw Normal View History

--- w.c
+++ w.c 2012-06-01 14:18:26.088580533 +0000
@@ -435,9 +435,19 @@ int main(int argc, char **argv)
maxcmd = atoi(p);
else
maxcmd = 80;
+#if 0
+ /*
+ * I have no idea why it shouldn't be allowed to see the result
+ * with a line wrap. The other solution would be to create a
+ * wcat alias, which does w|cat to work around this, but this
+ * would be stupid in my opinion.
+ */
if (maxcmd < 71)
xerrx(EXIT_FAILURE, _("%d column window is too narrow"), maxcmd);
-
+#else
+ if (maxcmd < 71)
+ xwarnx(_("%d column window could be to too narrow"), maxcmd);
+#endif
maxcmd -= 21 + userlen + (from ? fromlen : 0) + (longform ? 20 : 0);
if (maxcmd < 3)
xwarnx(_("warning: screen width %d suboptimal"), win.ws_col);