Ticket #303: 0002-check_for_blank_line_in_move_block_right.patch

File 0002-check_for_blank_line_in_move_block_right.patch, 636 bytes (added by im, 12 years ago)
  • src/editor/edit.c

    diff --git a/src/editor/edit.c b/src/editor/edit.c
    index 3dfd22e..9939064 100644
    a b  
    16721672    do 
    16731673    { 
    16741674        edit_cursor_move (edit, cur_bol - edit->curs1); 
     1675        if (!line_is_blank (edit, edit->curs_line)) { 
    16751676        if (option_fill_tabs_with_spaces) 
    16761677            insert_spaces_tab (edit, option_fake_half_tabs); 
    16771678        else 
    16781679            edit_insert (edit, '\t'); 
    1679         edit_cursor_move (edit, edit_bol (edit, cur_bol) - edit->curs1); 
     1680        edit_cursor_move (edit, edit_bol (edit, cur_bol) - edit->curs1); } 
    16801681 
    16811682        if (cur_bol == 0) 
    16821683            break;