Print a Unicode arrow when TextRange is empty in diagnostics
This commit is contained in:
parent
cc24825ef1
commit
39d576c799
1 changed files with 6 additions and 2 deletions
|
@ -325,8 +325,12 @@ namespace bolt {
|
||||||
Out << ' ';
|
Out << ' ';
|
||||||
}
|
}
|
||||||
setForegroundColor(HighlightColor);
|
setForegroundColor(HighlightColor);
|
||||||
for (std::size_t i = start_column; i < end_column; i++) {
|
if (start_column == end_column) {
|
||||||
Out << '~';
|
Out << "↖";
|
||||||
|
} else {
|
||||||
|
for (std::size_t i = start_column; i < end_column; i++) {
|
||||||
|
Out << '~';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
resetStyles();
|
resetStyles();
|
||||||
Out << '\n';
|
Out << '\n';
|
||||||
|
|
Loading…
Reference in a new issue