diff options
-rw-r--r-- | pw.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -380,7 +380,7 @@ static void drawline(pwstate *pw, const char *line, int lineno) fputs(line, stdout); columns -= len; } else { - int spaces = vsplit1 - len + 1; + int spaces = vsplit1 - len; fputs(line, stdout); for (int i = 0; i < spaces; i++) putchar(' '); @@ -995,7 +995,6 @@ int main(int argc, char **argv) clearerr(stdin); } else if (ch == '\n') { nfds = 1; - line = addch(line, 0); if ((pw.stat & stat_grep)) { int i; for (i = 0; i < ngrep; i++) |