[Bug 73896] problem reporter: '\t' is counted as 1 character instead of tabwidth in column count
daniel.franke at imbs.uni-luebeck.de
Wed Jan 26 22:27:06 UTC 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
------- Additional Comments From daniel.franke imbs uni-luebeck de 2005-01-26 22:24 -------
As far as I can tell, this should be fixed in lib/cppparser/lexer.h, in the nextChar()/nextChar(int) functions (about line 500):
Lexer::m_currentColumn is increased by 1 for each character read, but each skipped character should be compared to '\t' and if the comparison is true -that's the tricky part- the current editor's tabwidth should be added (instead of 1).
If I had the slightest idea how to make the tabwidth known to the beforementioned functions (query the editor?, hand it down while constructing the lexer?), I could try to provide a patch myself ...
More information about the KDevelop-devel