From 24fb6be7496bb42612ab01bca6b99fbd99b92f7b Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 14 May 2022 08:41:42 -0700 Subject: Remove superfluous string truncation. drawstatus clips to the number of columns. --- pw.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/pw.c b/pw.c index 1a1e5ea..9802b83 100644 --- a/pw.c +++ b/pw.c @@ -1900,8 +1900,6 @@ int main(int argc, char **argv) if (execute(&pw, pw.cmdbuf, pw.cmdbuf, cmdsize, count) != exec_ok) { - if (pw.columns < cmdsize) - pw.cmdbuf[pw.columns] = 0; pw.editpos = strlen(pw.cmdbuf); kbd_state = kbd_result; cmdcount = INT_MAX; -- cgit v1.2.3