| | @@ -175,6 +175,12 @@ |
| 175 | 175 | procedure Show(const p: TPos; const kind, kindColour, msg: shortstring); |
| 176 | 176 | var line, start, stop, lo, hi, i, n: longint; buf: PChar; num, gutter: shortstring; |
| 177 | 177 | begin |
| 178 | + if p.f >= numFiles then begin |
| 179 | + { about no place in a file, as for Rt, which the compiler imports |
| 180 | + before it reads one } |
| 181 | + writeln(StdErr, Paint(Bold, 'raz:'), ' ', Paint(kindColour, kind + ':'), ' ', Paint(Bold, msg)); |
| 182 | + exit; |
| 183 | + end; |
| 178 | 184 | Locate(p, line, start); |
| 179 | 185 | buf := files[p.f].buf; |
| 180 | 186 | writeln(StdErr, Paint(Bold, files[p.f].path + ':' + IntStr(line) + ':' |