improve cutcolorstring

now takes the width of characters into account

also: fix wraparound for docrefs
This commit is contained in:
ac-stef
2017-04-24 21:48:57 +02:00
parent 9739464381
commit 8e08cddaa7
5 changed files with 20 additions and 16 deletions
+1 -1
View File
@@ -589,7 +589,7 @@ void renderdoc(int x, int y, int doch)
{
string refs = "";
loopvj(curident->references) concatformatstring(refs, ", %s", curident->references[j]);
formatstring(doclines.add(newstringbuf()))("~related identifiers:%s", refs + 1);
formatstring(doclines.add(newstringbuf()))("Related identifiers:%s", refs + 1);
}
while(doclines.length() && !doclines.last()) doclines.pop();