Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-04

Opening file in editor window if it's loaded in another editor window

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jürgen Hestermann

I have 2 editor windows ("Source Editor" and ""Source Editor (2)" and have loaded "Unit1.pas" in both of these windows. After I have now (inadvertently) closed "Unit1.pas" in "Source Editor" I cannot load it again with "File Open".
It just happens nothing.

A known bug?

Reply by email

Mattias Gaertner
to Jürgen Hestermann
Show quoted text 5 lines
I have 2 editor windows ("Source Editor" and ""Source Editor (2)" and have loaded "Unit1.pas" in both of these windows. After I have now (inadvertently) closed "Unit1.pas" in "Source Editor" I cannot load it again with "File Open". It just happens nothing.

It should focus the "Unit1.pas" in "Source Editor (2)".

To open the unit a second time you have to use "Clone to other window".

Mattias

Reply by email

Jürgen Hestermann
to Mattias Gaertner
Mattias Gaertner wrote 9 lines
On Tue, 11 Apr 2017 17:39:13 +0200 Jürgen Hestermann via Lazarus wrote: > I have 2 editor windows ("Source Editor" and ""Source Editor (2)" > and have loaded "Unit1.pas" in both of these windows. > After I have now (inadvertently) closed "Unit1.pas" in "Source Editor" > I cannot load it again with "File Open". > It just happens nothing. It should focus the "Unit1.pas" in "Source Editor (2)".

No, it does just nothing.
Focus is on the IDE afterwards (not on an editor window).

To open the unit a second time you have to use "Clone to other window".

Yepp, this works.
Although it took me a while to find out that this function can only be found after a right click on the file name tab (even though I already used it before but only once). It seems not in the main menu somewhere, or is it?

I thought that "opening" a file while in an editor (windows) should open the file in the current editor window
independently from other editor windows.

Reply by email