Return LnumDiff where possible for -filter-mode=file
@@ -112,11 +112,11 @@ func (df *DiffFilter) InDiff(path string, lnum int) (yes bool, lnumdiff int) {
if !ok {
return false, 0
}
+ line, ok := lines[lnum]
+ if !ok {
if df.mode == ModeFile {
return true, 0
}
- line, ok := lines[lnum]
- if !ok {
return false, 0
}
return true, line.LnumDiff
