lst: cleanup - use parameter instead of the field (fix typo)

This commit is contained in:
Aleksey Pivovarov
2018-08-20 18:41:55 +03:00
parent 63997a5656
commit 58a1e3f0fe
@@ -370,7 +370,7 @@ class DocumentTracker : Disposable {
private fun getAffectedRange(line1: Int, oldLine2: Int, newLine2: Int, e: DocumentEvent): Triple<Int, Int, Int> {
val afterLength = newLine2 - line1
val beforeLength = line2 - line1
val beforeLength = oldLine2 - line1
// Whole line insertion / deletion
if (e.oldLength == 0 && e.newLength != 0) {