diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-04 19:17:19 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-04 19:17:48 +0200 |
commit | 9fdd929f8f3dd1cb6d8e2f2b11b06fe56fb99221 (patch) | |
tree | 244caf0987d89581712247fd32703c525a1a6a21 | |
parent | 620e2485092aec0e65d6ce5e7abf25a09adb237a (diff) |
GmDocument: Quote border line on empty quote lines
IssueID #108
-rw-r--r-- | res/about/version.gmi | 1 | ||||
-rw-r--r-- | src/gmdocument.c | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/res/about/version.gmi b/res/about/version.gmi index 5a4d4aec..c36813bb 100644 --- a/res/about/version.gmi +++ b/res/about/version.gmi | |||
@@ -12,6 +12,7 @@ | |||
12 | * Added support for Finger links (courtesy of John Cowan). | 12 | * Added support for Finger links (courtesy of John Cowan). |
13 | * Remote bookmarks are grouped under their source in the bookmark list. | 13 | * Remote bookmarks are grouped under their source in the bookmark list. |
14 | * A bookmark's icon is updated after loading the page so it matches the site. | 14 | * A bookmark's icon is updated after loading the page so it matches the site. |
15 | * Quote border line shows up on empty quote lines, too. | ||
15 | * Trusting a new server certificate manually immediately updates the current page. | 16 | * Trusting a new server certificate manually immediately updates the current page. |
16 | * Fixed parts of text disappearing when the glyph cache fills up. | 17 | * Fixed parts of text disappearing when the glyph cache fills up. |
17 | * Fixed handling of redirection in a background tab — redirected URL would open in the current tab. | 18 | * Fixed handling of redirection in a background tab — redirected URL would open in the current tab. |
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) { |