Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: kisoft on October 18, 2005, 09:44:56 am

Title: "GoTo line" trouble
Post by: kisoft on October 18, 2005, 09:44:56 am
Folding = Fold All (for ex.), Ctrl-G (GoTo) to folded line  :( Cursor unvisible, a status line looks like "Line 2360, Column 1" (it's right). Required line (block) necessary automatic unfold.
C::B CVS, wx262, Win2000, MinGW32
Title: Re: "GoTo line" trouble
Post by: mandrav on October 18, 2005, 02:13:45 pm
Please submit a feature request (or bug report) for this.
Title: Re: "GoTo line" trouble
Post by: kisoft on October 18, 2005, 02:53:42 pm
Please submit a feature request (or bug report) for this.
A feature request was submit (RequestID = 1329422).
Thanks
Title: Re: "GoTo line" trouble
Post by: kisoft on October 21, 2005, 11:08:35 am
Folding = Fold All (for ex.), Ctrl-G (GoTo) to folded lineĀ  :( Cursor unvisible, a status line looks like "Line 2360, Column 1" (it's right). Required line (block) necessary automatic unfold.
C::B CVS Update HEAD 21.10.2005, a block unfolded! That's great!

BUT: Cursor position is out of editor window. Cursor invisible. Cursor moving needs to look required line.

IMHO: After goto, cursor must centered (vertically) relative an editor window.

Code
An editor window top
...
...
Centered line
...
...
An editor window bottom

May be this problem have Win version only? (I can't test Linux version of C::B meanwhile)

Title: Re: "GoTo line" trouble
Post by: rickg22 on October 21, 2005, 05:27:10 pm
I'm not sure if we can implement that centering of the cursor.
Title: Re: "GoTo line" trouble
Post by: grv575 on October 22, 2005, 03:58:22 am
It's been reported before I believe.  The issue is that it needs to expand the surrounding collapsed block when it jumps to a line within one.
Title: Re: "GoTo line" trouble
Post by: kisoft on October 24, 2005, 01:44:46 pm
I'm not sure if we can implement that centering of the cursor.
Ok, centering - is yet another way. Later, may be.
Return to GoTo.

Command: Fold all.
Command: GoTo 1528.
Required block unfolded, Ok. After Goto I see a screenshot (see below).
I goes to line 1528, but I see line 1523 and above. Line 1528 is not visible. :(



[attachment deleted by admin]