From 5f45920a323489690ce623b512dde90ca74eda15 Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Wed, 13 Jan 2010 13:05:08 +0300 Subject: [PATCH] Ticket #1514 (incorrect draw right margin) fixed incorrect drawind right margin if option show_right_margin = 0 Signed-off-by: Ilia Maslakov --- edit/editdraw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edit/editdraw.c b/edit/editdraw.c index 15fb0c8e2..9913c5d24 100644 --- a/edit/editdraw.c +++ b/edit/editdraw.c @@ -290,10 +290,10 @@ print_to_widget (WEdit *edit, long row, int start_col, int start_col_real, tty_setcolor (EDITOR_NORMAL_COLOR); - if (!show_right_margin && -edit->start_col < option_word_wrap_line_length) { + if (!show_right_margin) { tty_draw_hline (edit->widget.y + y, edit->widget.x + x1, ' ', end_col + 1 - start_col); - } else { + } else if (edit->start_col < option_word_wrap_line_length) { tty_draw_hline (edit->widget.y + y, edit->widget.x + x1, ' ',