(edit_move_block_to_left): reduce variable scope.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2016-10-03 09:45:16 +03:00
parent c5efd8a1e1
commit c0cc0546d1

View File

@ -1625,7 +1625,6 @@ edit_move_block_to_left (WEdit * edit)
{
off_t start_mark, end_mark;
off_t cur_bol, start_bol;
int i;
if (!eval_marks (edit, &start_mark, &end_mark))
return;
@ -1649,12 +1648,16 @@ edit_move_block_to_left (WEdit * edit)
if (next_char == '\t')
edit_delete (edit, TRUE);
else if (next_char == ' ')
{
int i;
for (i = 0; i < del_tab_width; i++)
{
if (next_char == ' ')
edit_delete (edit, TRUE);
next_char = edit_buffer_get_current_byte (&edit->buffer);
}
}
if (cur_bol == 0)
break;