summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 1717f92f..f73b7dc4 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -400,6 +400,15 @@ static void doLayout_GmDocument_(iGmDocument *d) {
400 } 400 }
401 /* Empty lines don't produce text runs. */ 401 /* Empty lines don't produce text runs. */
402 if (isEmpty_Range(&line)) { 402 if (isEmpty_Range(&line)) {
403 if (type == quote_GmLineType && !prefs->quoteIcon) {
404 /* For quote indicators we still need to produce a run. */
405 run.visBounds.pos = addX_I2(pos, indents[type] * gap_Text);
406 run.visBounds.size = init_I2(gap_Text, lineHeight_Text(run.font));
407 run.bounds = zero_Rect(); /* just visual */
408 run.flags = quoteBorder_GmRunFlag | decoration_GmRunFlag;
409 run.text = iNullRange;
410 pushBack_Array(&d->layout, &run);
411 }
403 pos.y += lineHeight_Text(run.font); 412 pos.y += lineHeight_Text(run.font);
404 prevType = type; 413 prevType = type;
405 if (type != quote_GmLineType) { 414 if (type != quote_GmLineType) {