aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Fabio Bas2011-08-13 10:59:18 +0000
committerGravatar Fabio Bas2011-08-13 10:59:18 +0000
commitfa34ab8e3e8a38b8de9eae0171b5bbd0407772f2 (patch)
treea0f959783e3075ab4ef19c19b9dbb1afb4259e35 /src
parentsome work on #110 (correct the left margin for wrapped lines in ircview) (diff)
downloadKVIrc-fa34ab8e3e8a38b8de9eae0171b5bbd0407772f2.tar.gz
KVIrc-fa34ab8e3e8a38b8de9eae0171b5bbd0407772f2.tar.bz2
KVIrc-fa34ab8e3e8a38b8de9eae0171b5bbd0407772f2.zip
workaround for the second issue of #110 (wordwrap of a long line of text with no spaces in it). Supposed to be safe, please report if it's breaking something else for you
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5926 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
-rw-r--r--src/kvirc/ui/KviIrcView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kvirc/ui/KviIrcView.cpp b/src/kvirc/ui/KviIrcView.cpp
index fc84382f8..2c2c21fb0 100644
--- a/src/kvirc/ui/KviIrcView.cpp
+++ b/src/kvirc/ui/KviIrcView.cpp
@@ -1697,7 +1697,7 @@ void KviIrcView::calculateLineWraps(KviIrcViewLine *ptr,int maxWidth)
curLineWidth -= IRCVIEW_WCHARWIDTH(*p);
}
- if(curBlockLen == 0)
+ if(curBlockLen < 3)
{
// ran up to the beginning of the block....
if(ptr->pChunks[curAttrBlock].type == KviControlCodes::Icon)