Stop the IDE from syncing editor tabs across two source editors? lazarus / 9-Editor ---------------------------------------------------------------------- EganSolo · 2025-07-25 00:14 My IDE setup when editing includes two source editor windows. I tend to clone a tab across these and find it helpful to look at a piece of code in one editor while working on another piece in another editor. For instance, suppose I have a project with three files, main_form.pas, options.pas and utils.pas Main editor     : main_form.pas (focused) and options.pas Second editor : utils.pas (focused) and options.pas Currently, if I select options.pas in the second editor, the focus in the main editor will switch to options.pas also. I don't want the second editor to change the focus of the main editor to a different file. I looked into tools --> Options and didn't find an obvious box to tick. Suggestions? ---------------------------------------------------------------------- Martin_fr · 2025-07-25 06:32 Do you have the docked form editor installed? Which version of Lazarus do you use? It reminds me off https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39417 But that is believed to be fixed in Lazarus 4... ---------------------------------------------------------------------- EganSolo · 2025-07-25 17:25 Hi Martin,   Yes, that issue appears to be what I'm dealing with.   I'm using the docked version of Laz 4.0, build date: 2025-05-29. ---------------------------------------------------------------------- Martin_fr · 2025-07-25 17:52 Just noticed, it is only fixed in trunk. You can try to apply the changes to your installed IDE. https://gitlab.com/freepascal.org/lazarus/lazarus/- /commit/b6498c7031a2af72b383f65b6368117e5d14f904 https://gitlab.com/freepascal.org/lazarus/lazarus/- /commit/b6498c7031a2af72b383f65b6368117e5d14f904.diff When I fixed it I couldn't get any feedback, if 1) it works (probably) 2) it introduces other/new problems I don't use the docked form editor, so I wont ever notice if it breaks anything else. So, not knowing if would be safe, I did not merge it into 4.n. ---------------------------------------------------------------------- EganSolo · 2025-07-25 18:20 Thanks, Martin, I've applied the patch and will let you know what my experience is. ---------------------------------------------------------------------- EganSolo · 2025-07-25 19:58 Martin,   So far so good. The weird behavior stopped, and I haven't seen anything untoward. I'll update again after a week. Since I'm in the editor every day with 20+ tabs open, I'll know if something goes wrong.   After aborting a run, if a tab in the second editor is focused and I press Ctrl+F9, the run button remains disabled after a successful compilation. To enable it, I have to click on the main editor. To stop this behavior, I have to close and reopen the IDE. ---------------------------------------------------------------------- Martin_fr · 2025-07-25 20:31 Quote from: EganSolo on July 25, 2025, 09:58:47 pm  After aborting a run, if a tab in the second editor is focused and I press Ctrl+F9, the run button remains disabled after a successful compilation. To enable it, I have to click on the main editor. To stop this behavior, I have to close and reopen the IDE. "aborting a run" means - stop while compiling - stop while the app is running (terminate app) ? 1) That was like this BEFORE and AFTER the Patch? Or this has STARTED with the patch? 2) Please report it a as a bug. (Otherwise it might get forgotten) 3) Does it also fix itself if you - open any menu from the main menu - select something from the component palette (in case you have it visible) ? ---------------------------------------------------------------------- EganSolo · 2025-07-29 23:21 It was before and after the patch. So, the patch had no impact. I'll report it after I figure out a repeatable sequence. To answer your other questions: Yes, it fixes itself when ---------------------------------------------------------------------- Martin_fr · 2025-08-08 11:51 I merged the current fix for Lazarus 4.4