projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76806fd
)
elm_code: Fix crash on tabs in long lines
author
Andy Williams
<andy@andywilliams.me>
Thu, 18 May 2017 23:01:23 +0000
(
00:01
+0100)
committer
Andy Williams
<andy@andywilliams.me>
Thu, 18 May 2017 23:01:23 +0000
(
00:01
+0100)
@fix
src/lib/elementary/elm_code_widget.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/elm_code_widget.c
b/src/lib/elementary/elm_code_widget.c
index
e53f93b
..
ed18da2
100644
(file)
--- 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)
charwidth = 1;
if (unichr == '\t')
charwidth = elm_code_widget_text_tabwidth_at_column_get(widget, x - gutter + 1);
- for (i = x + 1; i < x + charwidth; i++)
+ for (i = x + 1; i < x + charwidth
&& i < (unsigned int) w
; i++)
{
cells[i].codepoint = 0;
cells[i].bg = _elm_code_widget_status_type_get(widget, line, i - gutter + 1);