summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_code_widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_code_widget.c')
-rw-r--r--src/lib/elementary/elm_code_widget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c
index 8c6db21334..3384761300 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -362,7 +362,7 @@ _elm_code_widget_fill_line(Elm_Code_Widget *widget, Elm_Code_Line *line)
362 charwidth = 1; 362 charwidth = 1;
363 if (unichr == '\t') 363 if (unichr == '\t')
364 charwidth = elm_code_widget_text_tabwidth_at_column_get(widget, x - gutter + 1); 364 charwidth = elm_code_widget_text_tabwidth_at_column_get(widget, x - gutter + 1);
365 for (i = x + 1; i < x + charwidth; i++) 365 for (i = x + 1; i < x + charwidth && i < (unsigned int) w; i++)
366 { 366 {
367 cells[i].codepoint = 0; 367 cells[i].codepoint = 0;
368 cells[i].bg = _elm_code_widget_status_type_get(widget, line, i - gutter + 1); 368 cells[i].bg = _elm_code_widget_status_type_get(widget, line, i - gutter + 1);