|
Line 0
Link Here
|
|
|
1 |
https://github.com/newsboat/newsboat/issues/506 |
| 2 |
|
| 3 |
--- base.c.orig 2015-01-05 10:50:54 UTC |
| 4 |
+++ base.c |
| 5 |
@@ -750,9 +750,11 @@ unsigned int stfl_print_richtext(struct stfl_widget *w |
| 6 |
wmemcpy(stylename, p1 + 1, p2 - p1 - 1); |
| 7 |
stylename[p2 - p1 - 1] = L'\0'; |
| 8 |
if (wcscmp(stylename,L"")==0) { |
| 9 |
- mvwaddnwstr(win, y, x, L"<", 1); |
| 10 |
- retval += 1; |
| 11 |
- ++x; |
| 12 |
+ if (end_col - x > 0) { |
| 13 |
+ mvwaddnwstr(win, y, x, L"<", 1); |
| 14 |
+ retval += 1; |
| 15 |
+ ++x; |
| 16 |
+ } |
| 17 |
} else if (wcscmp(stylename, L"/")==0) { |
| 18 |
stfl_style(win, style_normal); |
| 19 |
} else { |