aboutsummaryrefslogtreecommitdiff
path: root/dw
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-09-19 02:28:38 +0000
committercorvid <corvid@lavabit.com>2009-09-19 02:28:38 +0000
commit05f7b830a376f6f019e75580354758e35a263b7c (patch)
treec046471bcf9f48c574e26f7574b80048346c4dc3 /dw
parent4d4740422ef8bf829f9bace8df178f21d11e0585 (diff)
let's not draw spaces before breaks
They look bad when highlighting, and if there's a good need for them, I haven't noticed it yet.
Diffstat (limited to 'dw')
-rw-r--r--dw/textblock.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 5d005665..52ea7ed3 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -1402,7 +1402,9 @@ void Textblock::drawLine (Line *line, core::View *view, core::Rectangle *area)
drawText(wordIndex, view, area, xWidget, yWidgetBase);
}
}
- if (word->effSpace > 0 && wordIndex < line->lastWord - 1) {
+ if (word->effSpace > 0 && wordIndex < line->lastWord - 1 &&
+ words->getRef(wordIndex + 1)->content.type !=
+ core::Content::BREAK) {
drawSpace(wordIndex, view, area, xWidget + word->size.width,
yWidgetBase);
}