From 537b55b46e8581e5c9da01b7bed37435a05c16bb Mon Sep 17 00:00:00 2001 From: Patrick Winnertz Date: Wed, 14 Jan 2009 23:28:35 +0100 Subject: [PATCH] Move this var into if condition as it's only needed there --- edit/editdraw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edit/editdraw.c b/edit/editdraw.c index f0951f4b7..86ea3f9c7 100644 --- a/edit/editdraw.c +++ b/edit/editdraw.c @@ -282,7 +282,7 @@ edit_draw_this_line (WEdit *edit, long b, long row, long start_col, { static unsigned int line[MAX_LINE_LEN]; unsigned int *p = line; - long m1 = 0, m2 = 0, q, c1, c2, tws; + long m1 = 0, m2 = 0, q, c1, c2; int col, start_col_real; unsigned int c; int color; @@ -300,6 +300,7 @@ edit_draw_this_line (WEdit *edit, long b, long row, long start_col, eval_marks (edit, &m1, &m2); if (row <= edit->total_lines - edit->start_line) { + long tws; if (use_colors && visible_tws) { tws = edit_eol (edit, b); while (tws > b && ((c = edit_get_byte (edit, tws - 1)) == ' '