another small lineedit fix
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
5c2e81bb67
commit
9531f7dad7
@ -429,7 +429,9 @@ static void input_delete(int save)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
memmove(command_ps + j, command_ps + j + 1,
|
memmove(command_ps + j, command_ps + j + 1,
|
||||||
(command_len - j + 1) * sizeof(command_ps[0]));
|
/* (command_len + 1 [because of NUL]) - (j + 1)
|
||||||
|
* simplified into (command_len - j) */
|
||||||
|
(command_len - j) * sizeof(command_ps[0]));
|
||||||
command_len--;
|
command_len--;
|
||||||
input_end(); /* rewrite new line */
|
input_end(); /* rewrite new line */
|
||||||
cmdedit_set_out_char(' '); /* erase char */
|
cmdedit_set_out_char(' '); /* erase char */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user