Le 04/11/2011 10:29, Lex Trotman a écrit :
On 4 November 2011 19:39, JBFjean-baptiste.faure@cemagref.fr wrote:
Hi all,
I am new to Geany and I like it. But I wonder why the column number start from 0 instead from 1 in the status bar. I know that C and its derivatives makes index starting from 0 but it is strange that the first column does not appear with the number 1 like the first line is already numbered 1.
Hi,
The caret, the cursor used by default in Geany is between characters rather than on them like older block cursors. The column indicated by the status bar is the character to the left of the caret, and when it is at the start of a line there is nothing to the left of it, hence column 0.
I understand, but the usefulness of the value after "col:" in the status bar is to indicate in which column you will write if you type a key now. Not the number of characters before that position.
Best regards. JBF