mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
(edit_move_block_to_left): reduce variable scope.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
c5efd8a1e1
commit
c0cc0546d1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user