mirror of
https://github.com/troglobit/editline.git
synced 2025-05-05 20:11:12 +08:00
Fix for() loop; "statement with no effect" warning from GCC
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
35506cd22e
commit
12d5584721
@ -358,7 +358,7 @@ static void reposition(int key)
|
||||
tty_puts(rl_prompt);
|
||||
}
|
||||
|
||||
for (i; i < rl_point; i++) {
|
||||
for (; i < rl_point; i++) {
|
||||
tty_show(rl_line_buffer[i]);
|
||||
|
||||
/* move to the next line */
|
||||
|
Loading…
Reference in New Issue
Block a user