ui: Fixed scope annotations were highlighted with selection when only one was active
This commit is contained in:
@@ -437,7 +437,7 @@ void QtCodeArea::annotateText()
|
||||
}
|
||||
}
|
||||
|
||||
if (!annotation.isScope || (isActive && ids.size() == 1))
|
||||
if (!annotation.isScope || (isActive && ids.size() == 1 && scopeAnnotation.startLine == scopeAnnotation.endLine))
|
||||
{
|
||||
extraSelections.append(selection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user