WEdit::screen_modified is unused. Removed.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2011-03-30 13:10:56 +04:00
parent e64fe399e3
commit c81486c202
3 changed files with 6 additions and 11 deletions

View File

@ -77,7 +77,6 @@ struct WEdit
unsigned int modified:1; /* File has been modified and needs saving */
unsigned int loading_done:1; /* File has been loaded into the editor */
unsigned int locked:1; /* We hold lock on current file */
unsigned int screen_modified:1; /* File has been changed since the last screen draw */
unsigned int delete_file:1; /* New file, needs to be deleted unless modified */
unsigned int highlight:1; /* There is a selected block */
unsigned int column_highlight:1;

View File

@ -652,7 +652,6 @@ static void
edit_modification (WEdit * edit)
{
edit->caches_valid = 0;
edit->screen_modified = 1;
/* raise lock when file modified */
if (!edit->modified && !edit->delete_file)

View File

@ -630,7 +630,7 @@ render_edit_text (WEdit * edit, long start_row, long start_column, long end_row,
while (row <= end_row)
{
if (key_pending (edit))
goto exit_render;
return;
edit_draw_this_line (edit, b, row, start_column, end_column);
b = edit_move_forward (edit, b, 1, 0);
row++;
@ -650,7 +650,7 @@ render_edit_text (WEdit * edit, long start_row, long start_column, long end_row,
while (row <= upto)
{
if (key_pending (edit))
goto exit_render;
return;
edit_draw_this_line (edit, b, row, start_column, end_column);
b = edit_move_forward (edit, b, 1, 0);
}
@ -661,7 +661,7 @@ render_edit_text (WEdit * edit, long start_row, long start_column, long end_row,
if (curs_row >= start_row && curs_row <= end_row)
{
if (key_pending (edit))
goto exit_render;
return;
edit_draw_this_line (edit, b, curs_row, start_column, end_column);
}
if (force & REDRAW_AFTER_CURSOR)
@ -673,7 +673,7 @@ render_edit_text (WEdit * edit, long start_row, long start_column, long end_row,
while (row <= end_row)
{
if (key_pending (edit))
goto exit_render;
return;
edit_draw_this_line (edit, b, row, start_column, end_column);
b = edit_move_forward (edit, b, 1, 0);
row++;
@ -687,7 +687,7 @@ render_edit_text (WEdit * edit, long start_row, long start_column, long end_row,
if (row >= start_row && row <= end_row)
{
if (key_pending (edit))
goto exit_render;
return;
edit_draw_this_line (edit, b, row, start_column, end_column);
}
}
@ -699,7 +699,7 @@ render_edit_text (WEdit * edit, long start_row, long start_column, long end_row,
if (row >= start_row && row <= end_row)
{
if (key_pending (edit))
goto exit_render;
return;
edit_draw_this_line (edit, b, row, start_column, end_column);
}
}
@ -723,9 +723,6 @@ render_edit_text (WEdit * edit, long start_row, long start_column, long end_row,
prev_curs_row = edit->curs_row;
prev_curs = edit->curs1;
exit_render:
edit->screen_modified = 0;
}
/* --------------------------------------------------------------------------------------------- */