Ticket #1514 (incorrect draw right margin)

fixed incorrect drawind right margin if option show_right_margin = 0

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
This commit is contained in:
Ilia Maslakov 2010-01-13 13:05:08 +03:00 committed by Enrico Weigelt, metux IT service
parent ecb96b9fe4
commit 5f45920a32

View File

@ -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,
' ',