fix line numbers in mail scripts
authoradam <adam@megacz.com>
Sat, 15 Jan 2005 11:15:15 +0000 (11:15 +0000)
committeradam <adam@megacz.com>
Sat, 15 Jan 2005 11:15:15 +0000 (11:15 +0000)
darcs-hash:20050115111515-5007d-26a7bb3b2d6292db3b8eb4aa0049078415469ada.gz

src/org/ibex/mail/target/Script.java

index f3e8adf..0bf36b4 100644 (file)
@@ -32,7 +32,7 @@ public class Script extends Target {
     private String filePath = null;
     public Script(String filePath) throws JSExn, IOException {
         this.filePath = filePath;
-        js = JSU.cloneWithNewGlobalScope(JSU.fromReader(filePath, 0, new InputStreamReader(new FileInputStream(filePath))),
+        js = JSU.cloneWithNewGlobalScope(JSU.fromReader(filePath, 1, new InputStreamReader(new FileInputStream(filePath))),
                                          new ScriptScope()); }
 
     private class ScriptScope extends JS.Immutable {