mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Remove redundant calls
This commit is contained in:
parent
e039b0ee35
commit
278280a741
|
@ -1499,7 +1499,6 @@ static char *xreadline(char *prefill, char *prompt)
|
||||||
case '\t': /* TAB breaks cursor position, ignore it */
|
case '\t': /* TAB breaks cursor position, ignore it */
|
||||||
continue;
|
continue;
|
||||||
case CONTROL('L'):
|
case CONTROL('L'):
|
||||||
clearprompt();
|
|
||||||
printprompt(prompt);
|
printprompt(prompt);
|
||||||
len = pos = 0;
|
len = pos = 0;
|
||||||
continue;
|
continue;
|
||||||
|
@ -1510,7 +1509,6 @@ static char *xreadline(char *prefill, char *prompt)
|
||||||
pos = len;
|
pos = len;
|
||||||
continue;
|
continue;
|
||||||
case CONTROL('U'):
|
case CONTROL('U'):
|
||||||
clearprompt();
|
|
||||||
printprompt(prompt);
|
printprompt(prompt);
|
||||||
memmove(buf, buf + pos, (len - pos) << 2);
|
memmove(buf, buf + pos, (len - pos) << 2);
|
||||||
len -= pos;
|
len -= pos;
|
||||||
|
|
Loading…
Reference in a new issue