From 83ad80465a095a9cd62bae550058df1e3981cb0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Wed, 21 Mar 2018 09:42:54 +0100 Subject: [PATCH] solve source editor out of bound --- CrowIDE/src/Editors/SourceEditor.cs | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.47.3