aboutsummaryrefslogtreecommitdiff
path: root/session.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-09-04 23:17:45 +0700
committerShulhan <ms@kilabit.info>2023-09-04 23:17:45 +0700
commite7dc577ba54ec9b9f29c1b6845765f637e1b6408 (patch)
tree779e66e930581540106cd35898bfaa459cde7394 /session.go
parent858c26d3d940e3fba2db4ee1c6a3bb4b54544cf9 (diff)
downloadawwan-e7dc577ba54ec9b9f29c1b6845765f637e1b6408.tar.xz
all: fix #require does not get executed on the same start position
Diffstat (limited to 'session.go')
-rw-r--r--session.go2
1 files changed, 1 insertions, 1 deletions
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