[TxMt] Re: Column number display in HTML files if incorrect.

Allan Odgaard mailinglist at textmate.org
Sat Oct 3 10:49:23 UTC 2015


On 18 Sep 2015, at 22:35, Curt Sellmer wrote:

> I just noticed that when editing a an HTML file, TextMate seems to 
> report
> the indent level of the tags rather than the column numbers.  I have 
> my
> indent set to two spaces (soft tabs) and the following code will show  
> 2:2
> when the cursor is at the beginning of the second paragraph tag when 
> it should display 2:3.

It currently report the “bytes” counted. This is because of 
multi-byte characters (UTF-8) and combining characters (Unicode), I’ve 
postponed adding code for this because a simple implementation would at 
best be O(n) and already there are issues with long lines, so I didn’t 
want to add more issues.


More information about the textmate mailing list