Bug 58017

Summary: incorrect column count in editor (\t counted as character)
Product: [Applications] kdevelop Reporter: Daniel Franke <franke.daniel>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:

Description Daniel Franke 2003-05-02 15:56:29 UTC
Version:           3.0.0a4 (using KDE 3.1.1)
Installed from:    compiled sources
Compiler:          gcc version 3.2.2
OS:          SunOS (sun4u) release 5.8

"Line: Y Col: X":

X is counted incorrectly when using tabs. It's counting the number of tabs (number of characters) instead of "number of tabs" * "tabwidth".

This is a lot of text .... bla   -> X = 30
\t      \t      \t      \t      \t     -> X = 5 (instead of, one might expect, say 30)

This might be a bug in kate instead of kdevelop?
Comment 1 Jens Dagerbo 2003-05-03 00:31:18 UTC
A good way of checking if a editor-related bug is in KDevelop or katepart is trying the 
same thing in KWrite since that app embeds katepart more or less exactly the way 
KDevelop does. 
 
In this case it really seem to be related to KDevelop, since I can't get KWrite to exhibit 
the same behaviour.  
Comment 2 Jens Dagerbo 2003-05-03 02:41:53 UTC
Fixed in CVS.