off by one
This commit is contained in:
parent
c511d362fc
commit
54927ac57f
1 changed files with 1 additions and 1 deletions
|
|
@ -518,7 +518,7 @@ impl EmitterWriter {
|
|||
};
|
||||
let lo = self.cm.lookup_char_pos(sp.lo);
|
||||
let hi = self.cm.lookup_char_pos(sp.hi);
|
||||
let elide_sp = (hi.line - lo.line) > MAX_SP_LINES;
|
||||
let elide_sp = (hi.line - lo.line) >= MAX_SP_LINES;
|
||||
|
||||
let line_num = line.line_index + 1;
|
||||
if !(lo.line <= line_num && hi.line >= line_num) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue