mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Merge branch '303_mcedit_indent_fix'
* 303_mcedit_indent_fix: Ticket #303 (don't indent blank lines)
This commit is contained in:
commit
ee12f0c5bf
@ -1672,11 +1672,14 @@ edit_move_block_to_right (WEdit * edit)
|
|||||||
do
|
do
|
||||||
{
|
{
|
||||||
edit_cursor_move (edit, cur_bol - edit->curs1);
|
edit_cursor_move (edit, cur_bol - edit->curs1);
|
||||||
if (option_fill_tabs_with_spaces)
|
if (!line_is_blank (edit, edit->curs_line))
|
||||||
insert_spaces_tab (edit, option_fake_half_tabs);
|
{
|
||||||
else
|
if (option_fill_tabs_with_spaces)
|
||||||
edit_insert (edit, '\t');
|
insert_spaces_tab (edit, option_fake_half_tabs);
|
||||||
edit_cursor_move (edit, edit_bol (edit, cur_bol) - edit->curs1);
|
else
|
||||||
|
edit_insert (edit, '\t');
|
||||||
|
edit_cursor_move (edit, edit_bol (edit, cur_bol) - edit->curs1);
|
||||||
|
}
|
||||||
|
|
||||||
if (cur_bol == 0)
|
if (cur_bol == 0)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user