summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-01-04 19:17:19 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-01-04 19:17:48 +0200
commit9fdd929f8f3dd1cb6d8e2f2b11b06fe56fb99221 (patch)
tree244caf0987d89581712247fd32703c525a1a6a21 /src/gmdocument.c
parent620e2485092aec0e65d6ce5e7abf25a09adb237a (diff)
GmDocument: Quote border line on empty quote lines
IssueID #108
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) {