Skip to content

Commit 7d1b4b2

Browse files
committed
Fix source code indexing on 0.6
I had changed this to work around #24586 on 0.7, but it turns out that on 0.6, broadcast returned a vector, introducing the very problem there that we were trying to avoid on 0.7. Fix that by just doing the addition on the start/end of the range. Fixes #9
1 parent 9d70f9f commit 7d1b4b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DebuggerFramework.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ module DebuggerFramework
159159
current_line = line
160160
stoplinelength = length(string(stopline))
161161

162-
code = split(code[broadcast(+, startoffset:stopoffset, 1)],'\n')
162+
code = split(code[(startoffset+1):(stopoffset+1)],'\n')
163163
lineno = startline
164164

165165
if !isempty(code) && isempty(code[end])

0 commit comments

Comments
 (0)