]> O.S.I.I.S - jp/crow.git/commitdiff
solve source editor out of bound
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 21 Mar 2018 08:42:54 +0000 (09:42 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 21 Mar 2018 08:42:54 +0000 (09:42 +0100)
CrowIDE/src/Editors/SourceEditor.cs

index 724def34fa05ed67a4a4276d20053c1ec4f6ab84..4234a6835f639a58c121ea62daff1d9b0e3d397f 100644 (file)
@@ -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) {