diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-18 09:07:21 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-18 09:07:21 +0300 |
commit | baf4f8d5b02952e4adfcf60acdd1ac904c132c89 (patch) | |
tree | 6a468ffdf3de63ec2f94508f5dbcd94a8ee6d1ac /src/ui/documentwidget.c | |
parent | 3fb04c28f22475814708f69022eae5220d542108 (diff) |
Preferences: ANSI escape flags
FG color and font style escapes can be enabled separately. FG color remains enabled by default like before.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index cf2dc5da..1039fc2b 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -4839,7 +4839,7 @@ static iBool render_DocumentWidget_(const iDocumentWidget *d, iDrawContext *ctx, | |||
4839 | } | 4839 | } |
4840 | } | 4840 | } |
4841 | } | 4841 | } |
4842 | setAnsiEscapesEnabled_Text(ansiEscapesEnabled_GmDocument(d->doc)); | 4842 | setAnsiFlags_Text(ansiEscapes_GmDocument(d->doc)); |
4843 | iConstForEach(PtrSet, r, d->invalidRuns) { | 4843 | iConstForEach(PtrSet, r, d->invalidRuns) { |
4844 | const iGmRun *run = *r.value; | 4844 | const iGmRun *run = *r.value; |
4845 | if (isOverlapping_Rangei(bufRange, ySpan_Rect(run->visBounds))) { | 4845 | if (isOverlapping_Rangei(bufRange, ySpan_Rect(run->visBounds))) { |
@@ -4847,7 +4847,7 @@ static iBool render_DocumentWidget_(const iDocumentWidget *d, iDrawContext *ctx, | |||
4847 | drawRun_DrawContext_(ctx, run); | 4847 | drawRun_DrawContext_(ctx, run); |
4848 | } | 4848 | } |
4849 | } | 4849 | } |
4850 | setAnsiEscapesEnabled_Text(iTrue); | 4850 | setAnsiFlags_Text(allowAll_AnsiFlag); |
4851 | } | 4851 | } |
4852 | endTarget_Paint(p); | 4852 | endTarget_Paint(p); |
4853 | if (prerenderExtra && didDraw) { | 4853 | if (prerenderExtra && didDraw) { |