Skip to content

Commit 9b004c2

Browse files
Lilith HafnerLilith Hafner
authored andcommitted
Don't prompt field names for tuples at the REPL
1 parent e6d9979 commit 9b004c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/REPL/src/REPLCompletions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function complete_symbol(sym::String, @nospecialize(ffunc), context_module::Modu
202202
t = typeof(t.parameters[1])
203203
end
204204
# Only look for fields if this is a concrete type
205-
if isconcretetype(t)
205+
if isconcretetype(t) && !(t <: Tuple)
206206
fields = fieldnames(t)
207207
for field in fields
208208
s = string(field)

0 commit comments

Comments
 (0)