fix issue #841 & #896

For fix issue #841 & #896
add +1 to range.bottom for ignoreDiffsAfter