Bug 498399 - Make character count start from 0 in Kate and KWrite
Summary: Make character count start from 0 in Kate and KWrite
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR task
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-08 21:29 UTC by letsdiskuss
Modified: 2025-01-12 20:18 UTC (History)
1 user (show)

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 letsdiskuss 2025-01-08 21:29:41 UTC
Character count starts from 1 in both Kate and KWrite, this means that when 5 characters are typed the indicator marks 6.
This is quite confusing and different from all other text editors.
Character count should start from 0, so it displays 5 after 5 characters are typed.
Comment 1 fanzhuyifan 2025-01-12 20:18:58 UTC
If you are referring to the 1:x thing, then it is linenumber:column number, and not a character count. The colume number starts from 1 instead of 0 because what you type will be inserted into the first colume.