diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/documentwidget.c | 1 | ||||
-rw-r--r-- | src/ui/text.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index 9f4708e7..6c0337a0 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -656,6 +656,7 @@ static void parseUser_DocumentWidget_(iDocumentWidget *d) { | |||
656 | iRegExp *userPats[2] = { new_RegExp("~([^/?]+)", 0), | 656 | iRegExp *userPats[2] = { new_RegExp("~([^/?]+)", 0), |
657 | new_RegExp("/users/([^/?]+)", caseInsensitive_RegExpOption) }; | 657 | new_RegExp("/users/([^/?]+)", caseInsensitive_RegExpOption) }; |
658 | iRegExpMatch m; | 658 | iRegExpMatch m; |
659 | init_RegExpMatch(&m); | ||
659 | iForIndices(i, userPats) { | 660 | iForIndices(i, userPats) { |
660 | if (matchString_RegExp(userPats[i], d->mod.url, &m)) { | 661 | if (matchString_RegExp(userPats[i], d->mod.url, &m)) { |
661 | setRange_String(d->titleUser, capturedRange_RegExpMatch(&m, 1)); | 662 | setRange_String(d->titleUser, capturedRange_RegExpMatch(&m, 1)); |
diff --git a/src/ui/text.c b/src/ui/text.c index 40956e29..a4a3804d 100644 --- a/src/ui/text.c +++ b/src/ui/text.c | |||
@@ -434,6 +434,7 @@ static iRect run_Font_(iFont *d, enum iRunMode mode, iRangecc text, size_t maxLe | |||
434 | /* ANSI escape. */ | 434 | /* ANSI escape. */ |
435 | chPos++; | 435 | chPos++; |
436 | iRegExpMatch m; | 436 | iRegExpMatch m; |
437 | init_RegExpMatch(&m); | ||
437 | if (match_RegExp(text_.ansiEscape, chPos, text.end - chPos, &m)) { | 438 | if (match_RegExp(text_.ansiEscape, chPos, text.end - chPos, &m)) { |
438 | if (mode == draw_RunMode) { | 439 | if (mode == draw_RunMode) { |
439 | /* Change the color. */ | 440 | /* Change the color. */ |