Skip to content

Commit

Permalink
Fix showing conjugate variables
Browse files Browse the repository at this point in the history
  • Loading branch information
projekter committed Dec 15, 2023
1 parent 07c7be4 commit bd84da7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ Base.show(io::IO, p::TypesWithShow) = show(io, MIME"text/plain"(), p)
function _show(io::IO, mime::MIME, var::AbstractVariable)
base, indices = name_base_indices(var)
if isconj(var)
for c in base
print(io, c, '\u0305') # displays as overbar (̄z)
if base isa Symbol
print(io, base, '\u0305') # displays as overbar (̄z)
else
for c in base
print(io, c, '\u0305')
end
end
else
print(io, base)
Expand Down

0 comments on commit bd84da7

Please sign in to comment.