diff --git uppsrc/ide/Errors.cpp uppsrc/ide/Errors.cpp index 2801c4191..03628ba8f 100644 --- uppsrc/ide/Errors.cpp +++ uppsrc/ide/Errors.cpp @@ -515,14 +515,25 @@ void Ide::ConsoleLine(const String& line, bool assist) if(IsDarkMismatch()) paper = SColorPaper(); int linecy; - error.Add(f.file, f.lineno, - AttrText(FormatErrorLine(f.message, linecy)).NormalPaper(paper), - RawToValue(f)); - if(prenotes.GetCount()) { - error.Set(error.GetCount() - 1, "NOTES", prenotes); - prenotes.Clear(); + Vector v = {f.file, f.lineno, + AttrText(FormatErrorLine(f.message, linecy)).NormalPaper(paper), + RawToValue(f)}; + if(f.kind == 1) { + error.Insert(error_count - 1, v); + error.SetLineCy(error_count - 1, linecy); + if(prenotes.GetCount()) { + error.Set(error_count - 1, "NOTES", prenotes); + prenotes.Clear(); + } + } + else { + error.Add(v); + error.SetLineCy(error.GetCount() - 1, linecy); + if(prenotes.GetCount()) { + error.Set(error.GetCount() - 1, "NOTES", prenotes); + prenotes.Clear(); + } } - error.SetLineCy(error.GetCount() - 1, linecy); SyncErrorsMessage(); addnotes = true; return;