Commit a4de56db authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed #kumir2-1632

parent a4555c7d
......@@ -400,6 +400,13 @@ void TextCursor::evaluateCommand(const KeyCommand &command)
}
if (clearCurrentLineError && row_<editor_->document()->linesCount()) {
editor_->document()->marginAt(row_).errors.clear();
TextLine & line = editor_->document()->at(row_);
for (int lxNo = 0; lxNo < line.highlight.size(); lxNo++) {
line.highlight[lxNo] = Shared::LexemType(
line.highlight[lxNo] & ~Shared::LxTypeError
);
}
line.changed = true;
}
if (prevRow!=row_ || prevLines != editor_->document()->linesCount()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment