konsole: fix column width calculation for string

TQString accessor is 0-based.

Signed-off-by: OBATA Akio <obache@wizdas.com>
pull/516/head
OBATA Akio 3 months ago
parent 5675b97655
commit 928fbada0a

@ -213,7 +213,7 @@ int string_width( const TQString &txt )
{ {
int w = 0; int w = 0;
for ( uint i = 1; i < txt.length(); ++i ) { for ( uint i = 0; i < txt.length(); ++i ) {
w += konsole_wcwidth(txt[i].unicode()); w += konsole_wcwidth(txt[i].unicode());
} }
return w; return w;

Loading…
Cancel
Save