We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48db254 commit c1e051bCopy full SHA for c1e051b
src/dscanner/analysis/run.d
@@ -133,7 +133,8 @@ private string formatContext(Message.Diagnostic diagnostic, scope const(char)[]
133
import std.string : indexOf, lastIndexOf;
134
135
if (diagnostic.startIndex >= diagnostic.endIndex || diagnostic.endIndex > code.length
136
- || diagnostic.startColumn >= diagnostic.endColumn || diagnostic.endColumn == 0)
+ || diagnostic.startColumn >= diagnostic.endColumn || diagnostic.endColumn == 0
137
+ || diagnostic.startColumn == 0)
138
return null;
139
140
auto lineStart = code.lastIndexOf('\n', diagnostic.startIndex) + 1;
0 commit comments