Skip to content

Commit

Permalink
Merge pull request #14 from AtelierArith/terasaki/fix-issue-13
Browse files Browse the repository at this point in the history
Fix #13
  • Loading branch information
terasakisatoshi authored Dec 22, 2024
2 parents aefa47f + a9377d9 commit ac472a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TerminalGat"
uuid = "a8322826-ec82-40fc-90aa-583bcb5172ca"
authors = ["Satoshi Terasaki <terasakisatoshi.math@gmail.com> and contributors"]
version = "0.1.4"
version = "0.1.5"

[deps]
IOCapture = "b5f81e59-6552-4d32-b1f0-c071b021bf89"
Expand Down
3 changes: 2 additions & 1 deletion src/TerminalGat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ end
Print a code giving the location of a generic Function definition
with syntax highlighting by gat command.
"""
function gode(args...)
function gode(io::IO, args...)
file, linenum = functionloc(args...)
lines = readlines(file)[linenum:end]
str = extractcode(lines)
Expand All @@ -167,6 +167,7 @@ function code(io::IO, args...)
end

code(args...) = (@nospecialize; code(stdout, args...))
gode(args...) = (@nospecialize; gode(stdout, args...))

"""
@gode(ex0)
Expand Down

0 comments on commit ac472a9

Please sign in to comment.