Inconsistant calculation of column numbers

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
dcrocker
Posts: 7
Joined: Fri Nov 14, 2003 9:31 am
Location: UK
Contact:

Inconsistant calculation of column numbers

Post by dcrocker »

I am having a small problem with TextPad 4.7.0. I have configured a software development environment to use TextPad as my default editor. When I double-click on an error message, it instructs TextPad to open the file at the line and column of the error message using a line like this:

textpad.exe -q "filename"(4, 33)

where (4, 33) are the row and column number of the error. The problem is, even though I have the indent size set to 4 in TextPad, it is counting tabs as exactly one character each when placing the cursor, so that the cursor ends up on the correct row but on the wrong column. :(

If I then use "Search -> Goto column" and re-enter the same column number, it puts the cursor in the right place. So TextPad gets its column calculations right in the Goto function, but wrong when a column number is passed on the command line.

Is there a fix or workaround to this problem?
David Crocker
Post Reply