From: Arun Prakash Jana Date: Thu, 24 Jan 2019 14:51:00 +0000 (+0530) Subject: Remove redundant calls X-Git-Tag: v2.3~88 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=278280a7410fe57ecc7979ab5cb4ea90c1b2c358;p=nnn.git Remove redundant calls --- diff --git a/src/nnn.c b/src/nnn.c index b5b461c1..bf7264ec 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -1499,7 +1499,6 @@ static char *xreadline(char *prefill, char *prompt) case '\t': /* TAB breaks cursor position, ignore it */ continue; case CONTROL('L'): - clearprompt(); printprompt(prompt); len = pos = 0; continue; @@ -1510,7 +1509,6 @@ static char *xreadline(char *prefill, char *prompt) pos = len; continue; case CONTROL('U'): - clearprompt(); printprompt(prompt); memmove(buf, buf + pos, (len - pos) << 2); len -= pos;