mirror of https://github.com/sbt/sbt.git
fix line number off by one in configuration error messages
This commit is contained in:
parent
650bef7b06
commit
7b2e4978fb
|
|
@ -19,7 +19,7 @@ object Script
|
|||
|
||||
val eval = session.currentEval()
|
||||
val settings = blocks(script).flatMap { block =>
|
||||
evaluate(eval, script.getPath, block.lines, currentUnit.imports, block.offset)
|
||||
evaluate(eval, script.getPath, block.lines, currentUnit.imports, block.offset+1)
|
||||
}
|
||||
val scriptAsSource = sources in Compile := script :: Nil
|
||||
val asScript = scalacOptions ++= Seq("-Xscript", script.getName.stripSuffix(".scala"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue