(edit_move_block_to_left): cleanup -Wunsafe-loop-optimizations.

edit.c: In function 'edit_move_block_to_left':
edit.c:1652:13: warning: cannot optimize possibly infinite loops [-Wunsafe-loop-optimizations]
             for (i = 1; i <= del_tab_width; i++)
             ^~~

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2016-09-17 13:32:33 +00:00 committed by Andrew Borodin
parent 38fc00669d
commit c5efd8a1e1

View File

@ -1649,7 +1649,7 @@ edit_move_block_to_left (WEdit * edit)
if (next_char == '\t')
edit_delete (edit, TRUE);
else if (next_char == ' ')
for (i = 1; i <= del_tab_width; i++)
for (i = 0; i < del_tab_width; i++)
{
if (next_char == ' ')
edit_delete (edit, TRUE);