Editor - Cursor X Position Status Bug

Previous topic - Next topic

Slydog

I think this is a bug, and not a feature.
The 'Z' coordinate (so, we're viewing our files from the top view? ha) seems to work.

The 'X' coordinate seems to count the bytes of text, not the actual horizontal position.
This would work fine until you insert a 'Tab' character.
It displays four 'spaces', but takes only one byte.
With 3 tabs inserted to your left, it will show you as on position 4, not 13 like is should, imo.

I guess to fix it just add (tabsQtyInLine * 3) to the current position?  (Assuming the tab size if fixed at 4).

My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Kitty Hello