Skip to content

Commit 81337a8

Browse files
committed
fix and test a show method
1 parent a330954 commit 81337a8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/text.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function GtkTextIter(text::GtkTextBuffer, mark::GtkTextMark)
3131
Ref(i)
3232
end
3333

34-
show(io::IO, iter::_GtkTextIter) = println("_GtkTextIter($(iter.offset) ))")
34+
show(io::IO, iter::_GtkTextIter) = print("_GtkTextIter($(G_.get_offset(Ref(iter))))")
3535

3636

3737
#"""

test/text.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ push!(w, v)
1818

1919
its = GtkTextIter(b, 1)
2020
ite = GtkTextIter(b, 2)
21+
show(its)
2122

2223
@test buffer(its) == b
2324
@test (its:ite).text == "t"

0 commit comments

Comments
 (0)