2012-06-04 16:22:08 +02:00
|
|
|
--- w.c
|
2012-10-30 14:13:12 +01:00
|
|
|
+++ w.c 2012-10-30 11:05:00.182344798 +0000
|
|
|
|
@@ -569,8 +569,19 @@ int main(int argc, char **argv)
|
2012-06-04 16:22:08 +02:00
|
|
|
maxcmd = atoi(p);
|
|
|
|
else
|
2012-10-30 14:13:12 +01:00
|
|
|
maxcmd = MAX_CMD_WIDTH;
|
2012-06-04 16:22:08 +02:00
|
|
|
+#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
|
2012-10-30 14:13:12 +01:00
|
|
|
if (MAX_CMD_WIDTH < maxcmd) {
|
|
|
|
xwarnx(_("%d column width exceeds command buffer size, truncating to %d"),
|
|
|
|
maxcmd, MAX_CMD_WIDTH);
|