Bug 58017 - incorrect column count in editor (\t counted as character)
Summary: incorrect column count in editor (\t counted as character)
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-02 15:56 UTC by Daniel Franke
Modified: 2003-05-03 02:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.