Bug 402446

Summary: Konsole Column Count is Incorrect
Product: [Applications] konsole Reporter: scott ashford <scott.ashford>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: CONFIRMED ---    
Severity: normal CC: bugseforuns, mglb, ol+kde
Priority: NOR    
Version: 18.12.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=359662
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description scott ashford 2018-12-21 22:45:14 UTC
When opening a new Konsole the number of Columns for the current profile is appears to be increased by 1.

STEPS TO REPRODUCE
1. Open Konsole
2. Set current Konsole profile Columns to 80
3. Reopen Konsole
4. Compare set columns to actual columns

OBSERVED RESULT
81 columns

EXPECTED RESULT
80 columns
Comment 1 Kurt Hindenburg 2018-12-22 03:58:10 UTC
I can't reproduce - how are you determining the columns?

echo $COLUMNS ?
Comment 2 scott ashford 2018-12-22 04:07:57 UTC
(In reply to Kurt Hindenburg from comment #1)
> I can't reproduce - how are you determining the columns?
> 
> echo $COLUMNS ?

Yes echo $COLUMNS returns 81. Is there any other information that would be helpful?
Comment 3 Kurt Hindenburg 2018-12-22 15:42:20 UTC
What font name/size are you using?  You are starting konsole how?
Comment 4 Mariusz Glebocki 2018-12-23 02:17:49 UTC
Can confirm with Qt 5.9.7 (qt.io) and Qt 5.9.5 (kubuntu). Works OK with Qt 5.12.0 (qt.io)

This is related to https://bugs.kde.org/show_bug.cgi?id=359662 but happens for rows and columns. Menubar visibility is irrelevant.

Fonts:
DejaVu Sans Mono 8pt.
Input 8pt
Hack 8pt

Qt 5.9.7:
Size set to 80x24 opens with 80x26
Size set to 40x12 opens with 40x12

Qt 5.9.5 (I know it is unsupported):
Size set to 80x24 opens with 81x27
Size set to 40x12 opens with 41x15
Comment 5 scott ashford 2018-12-26 19:02:08 UTC
(In reply to Kurt Hindenburg from comment #3)
> What font name/size are you using?  You are starting konsole how?

The font is xos4 Terminus at size 10.0. Launching it via the Application Menu or from another konsole both result in an incorrect konsole size.