Jump to content
Sign in to follow this  
dummzeuch

Cursor positions in multiple edit windows

Recommended Posts

I just noticed that the cursor position in additional edit windows does not move if I insert new lines above it. E.g.

 

In EditView1, the cursor is in line 10.

In EditView2, the cursor is in line 15.

In EditView3 I insert a new line above line 5.

 

I would expect the cursor position in EditView1 move to line 11 and in EditView2 move to line 16, so they stay at their positions relative to the source code.

 

But apparently that's not the case.

 

Is that a bug or working as designed?

 

The reason why I as noticing this: If just fixed bug #450: Formatter does not store cursor position of additional edit windows in GExperts.

But now I wonder whether I should have bothered, since the IDE apparently doesn't handle this either.

Share this post


Link to post

IMHO, that is an oversight (i.e. nobody raised this use case in the past, so nobody added that to the specification).

 

The ToolsAPI provides IOTAEditLineTracker to handle that. Getting the cursor position of an EditView tracked while being deactivated should be an overseeable task.

 

I suggest filing a report. Multiple EditViews of the same source seem to be used rarely. We need more reports like that to drag some attention to it.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×