We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
src_from_REPL
1 parent ddbb6db commit 00ad4e0Copy full SHA for 00ad4e0
2 files changed
Project.toml
@@ -1,7 +1,7 @@
1
name = "CodeTracking"
2
uuid = "da1fd8a2-8d9e-5ec2-8556-3022fb5608a2"
3
authors = ["Tim Holy <tim.holy@gmail.com>"]
4
-version = "3.0.0"
+version = "3.0.1"
5
6
[deps]
7
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
src/utils.jl
@@ -336,8 +336,13 @@ end
336
337
function src_from_REPL(origin::AbstractString, repl = Base.active_repl)
338
hist_idx = parse(Int, origin)
339
- hp = repl.interface.modes[1].hist
340
- return hp.history[hp.start_idx+hist_idx]
+ hp = repl.interface.modes[1].hist::REPL.REPLHistoryProvider
+ entry = hp.history[hp.start_idx+hist_idx]
341
+ @static if VERSION ≥ v"1.13-"
342
+ return entry.content
343
+ else
344
+ return entry
345
+ end
346
end
347
348
function basepath(id::PkgId)
0 commit comments