Skip to content

Commit

Permalink
Fix saving session settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Sanduleac authored and eed3si9n committed Mar 21, 2014
1 parent d8bc993 commit f66dd80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/src/main/scala/sbt/SessionSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ object SessionSettings
}
val exist = tmpLines.reverse
val adjusted = if(!newSettings.isEmpty && needsTrailingBlank(exist)) exist :+ "" else exist
val lines = adjusted ++ newSettings.map(_._2).flatten.flatMap(_ :: "" :: Nil)
val lines = adjusted ++ newSettings.flatMap(_._2 ::: "" :: Nil)
IO.writeLines(writeTo, lines)
val (newWithPos, _) = ((List[SessionSetting](), adjusted.size + 1) /: newSettings) {
case ((acc, line), (s, newLines)) =>
Expand Down

0 comments on commit f66dd80

Please sign in to comment.