From e7dc577ba54ec9b9f29c1b6845765f637e1b6408 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 4 Sep 2023 23:17:45 +0700 Subject: all: fix #require does not get executed on the same start position --- session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session.go b/session.go index 401da77..6d5cd02 100644 --- a/session.go +++ b/session.go @@ -360,7 +360,7 @@ func (ses *Session) executeRequires(req *Request, pos linePosition) (err error) x int64 ) - for x = 0; x < pos.start; x++ { + for x = 0; x <= pos.start; x++ { stmt = req.script.requires[x] if stmt == nil { continue -- cgit v1.3