This commit is contained in:
Eugene Vigdorchik 2012-02-20 12:30:10 +04:00
commit ff4b42ce45
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ object SessionSettings
val offs = adjusted.size + 1
val newWithPos = newSettings zip Range(offs, offs + 2*newSettings.size, 2) map {
case ((s, text), line) => (s withPos RangePosition(path, LineRange(line, line + 1)), text)
}
}
(newWithPos, other ++ oldShifted)
}
def needsTrailingBlank(lines: Seq[String]) = !lines.isEmpty && !lines.takeRight(1).exists(_.trim.isEmpty)