Mercurial > dillo_port1.3
changeset 1320:04d225021c79
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.
author | corvid <corvid@lavabit.com> |
---|---|
date | Sat, 19 Sep 2009 02:28:38 +0000 |
parents | 2995e0d9f89b |
children | f532c54dea39 |
files | dw/textblock.cc |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dw/textblock.cc Sat Sep 19 02:24:29 2009 +0000 +++ b/dw/textblock.cc Sat Sep 19 02:28:38 2009 +0000 @@ -1402,7 +1402,9 @@ 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); }