]> Sergey Matveev's repositories - nnn.git/commitdiff
Remove redundant calls
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 24 Jan 2019 14:51:00 +0000 (20:21 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 24 Jan 2019 14:51:00 +0000 (20:21 +0530)
src/nnn.c

index b5b461c17bd8241b530ba18a5009bc295b878891..bf7264eca030d872b572d0c2a4bfd500ca227465 100644 (file)
--- 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;