@@ -155,7 +155,7 @@ module DebuggerFramework
155
155
current_line = line
156
156
stoplinelength = length (string (stopline))
157
157
158
- code = split (code[(startoffset: stopoffset)+ 1 ],' \n ' )
158
+ code = split (code[(startoffset: stopoffset). + 1 ],' \n ' )
159
159
lineno = startline
160
160
161
161
if ! isempty (code) && isempty (code[end ])
@@ -180,7 +180,13 @@ module DebuggerFramework
180
180
print_with_color (:bold , outbuf, " In " , locdesc (frame), " \n " )
181
181
loc = locinfo (frame)
182
182
if loc != = nothing
183
- print_sourcecode (outbuf, isa (loc, BufferLocInfo) ? loc. data : readstring (loc. filepath),
183
+ data = if isa (loc, BufferLocInfo)
184
+ loc. data
185
+ else
186
+ VERSION < v " 0.7" ? read (loc. filepath, String) :
187
+ readstring (loc. filepath)
188
+ end
189
+ print_sourcecode (outbuf, data,
184
190
loc. line, loc. defline)
185
191
else
186
192
buf = IOBuffer ()
@@ -276,8 +282,8 @@ module DebuggerFramework
276
282
return true
277
283
end
278
284
279
- const key = ' `'
280
- const repl_switch = Dict {Any,Any} (
285
+ key = ' `'
286
+ repl_switch = Dict {Any,Any} (
281
287
key => function (s,args... )
282
288
if isempty (s) || position (LineEdit. buffer (s)) == 0
283
289
prompt = language_specific_prompt (state, state. stack[1 ])
0 commit comments