White vertical line in IDE after update lazarus / 9-Editor ---------------------------------------------------------------------- Fibonacci · 2024-10-21 11:49 I updated my IDE, and this thing you can see in the screenshot(s) is now there - a vertical white line I cannot remove or change its color. So I went back to earlier commit, and that fixed it, but then I noticed there was a nice new function SetCaretPosInActiveEditor - I want that! So I updated to commit 1580d1778ea96d22b0fa9982f299e74402fa850e ("IDE: Improve setting cursor position in new programs. Issue #32089, patch by n7800."), but that white line is there! Anyone knows how to fix it? I checked everything color-related in the Options, and nothing changes this white line. ---------------------------------------------------------------------- MarkMLl · 2024-10-21 12:01 That looks like something to do with the RH gutter that the IDE usually uses to display the position of breakpoints etc. relative to the entire file... MarkMLl ---------------------------------------------------------------------- Martin_fr · 2024-10-21 12:04 Hard to tell, as I can't map the colors. I think I see a similar spacing, but in a gray color... Can you try and open     ide\sourcesyneditor.pas Line 2484 (at least if you update to latest main git) Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i       with TSynGutterSeparator.Create(Parts) do        Name := 'SynGutterSeparatorR2';  Line 2497 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i       with TSynGutterSeparator.Create(Parts) do begin        Name := 'SynGutterSeparatorR3';        AutoSize := False;        Width := 1;      LineWidth := 0;      end;  Remove those 2 blocks of code (ensure that you have the correct block by checking the NAME). ---------------------------------------------------------------------- Fibonacci · 2024-10-21 12:12 Hell Yeah! Fixed! Thank you Code: Diff  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i diff --git a/ide/sourcesyneditor.pas b/ide/sourcesyneditor.pasindex 7f82b002a0..7857d54a9f 100644--- a/ide/sourcesyneditor.pas+++ b/ide/sourcesyneditor.pas@@ -2269,8 +2269,6 @@ begin       with DebugGutter do         Name := 'TIDESynGutterDebugHL';       {$ENDIF}-      with TSynGutterSeparator.Create(Parts) do-        Name := 'SynGutterSeparatorR2';       with TSynGutterLineOverview.Create(Parts) do begin         Name := 'SynGutterLineOverview1';         with TIDESynGutterLOvProviderIDEMarks.Create(Providers) do@@ -2282,12 +2280,6 @@ begin         with TIDESynGutterLOvProviderPascal.Create(Providers) do           Priority := 0;       end;-      with TSynGutterSeparator.Create(Parts) do begin-        Name := 'SynGutterSeparatorR3';-        AutoSize := False;-        Width := 1;-        LineWidth := 0;-      end;     end;   finally     DecChangeLock; ---------------------------------------------------------------------- Fibonacci · 2024-10-21 12:20 @Martin_fr: While we are at it, do you happen to know why, after I start the IDE, sometimes, not always, I have to reposition/resize this thing you see in the GIF, as it forgets its position/size? ---------------------------------------------------------------------- Martin_fr · 2024-10-21 13:06 Unfortunately no. ---------------------------------------------------------------------- n7800 · 2024-10-21 14:52 Quote from: Fibonacci on October 21, 2024, 01:49:52 pmbut then I noticed there was a nice new function SetCaretPosInActiveEditor - I want that! So I updated to commit 1580d1778ea96d22b0fa9982f299e74402fa850e ("IDE: Improve setting cursor position in new programs. Issue #32089, patch by n7800.") Glad to hear! At first, after reading the message inattentively, I was afraid that my patch had broken something... )) Quote from: Fibonacci on October 21, 2024, 02:20:33 pm@Martin_fr: While we are at it, do you happen to know why, after I start the IDE, sometimes, not always, I have to reposition/resize this thing you see in the GIF, as it forgets its position/size? Do you have the "Automatically adjust IDE main window height" option in the "Environment/Window" options section? Although, even if not, it should still remember the size... ---------------------------------------------------------------------- Martin_fr · 2024-10-21 15:23 Fixed the white line. Well in the main editor => the preview still has it... (todo) ---------------------------------------------------------------------- Fibonacci · 2024-10-21 15:50 Cool, thanks @n7800 and @Martin_fr for the patches When I set the auto-adjust option on, it "feels" like it works - I cant move or resize anything, but theres a horrible side effect... ---------------------------------------------------------------------- Martin_fr · 2024-10-21 18:12 Quote from: Fibonacci on October 21, 2024, 05:50:00 pmCool, thanks @n7800 and @Martin_fr for the patches When I set the auto-adjust option on, it "feels" like it works - I cant move or resize anything, but theres a horrible side effect... I see, your entire IDE is painted with black background. That can much faster tire you eyes, so you must take more breaks. SCNR I am a big believer in the light side....