From: Jean-Philippe Bruyère Date: Wed, 21 Mar 2018 08:42:54 +0000 (+0100) Subject: solve source editor out of bound X-Git-Tag: 0.7.3~4^2~1 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=83ad80465a095a9cd62bae550058df1e3981cb0b;p=jp%2Fcrow.git solve source editor out of bound --- diff --git a/CrowIDE/src/Editors/SourceEditor.cs b/CrowIDE/src/Editors/SourceEditor.cs index 724def34..4234a683 100644 --- a/CrowIDE/src/Editors/SourceEditor.cs +++ b/CrowIDE/src/Editors/SourceEditor.cs @@ -370,6 +370,7 @@ namespace Crow.Coding if (l == buffer.CurrentLine) return; buffer.CurrentLine = l; + l = buffer.CurrentLine; //reaffect from buffer where bound check is made if ((bool)buffer [l]?.IsFolded) buffer.ToogleFolding (l); } catch (Exception ex) {