aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pw.c2
1 files changed, 0 insertions, 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;