Skip to content

Commit 3d577f6

Browse files
committed
Fixed completion bug with Julia 1.11
(cherry picked from commit 7f63f86)
1 parent 6bd0c41 commit 3d577f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/UnicodeREPL.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ function input_handler(inputstr)
7878
Main.eval(Meta.parse(substitution(inputstr)))
7979
end
8080

81-
function complete_line(x::UnicodeCompletionProvider, s::REPL.LineEdit.PromptState)
81+
function complete_line(x::UnicodeCompletionProvider, s::REPL.LineEdit.PromptState; hint::Any=:no_hint)
8282
firstpart = String(s.input_buffer.data[1:s.input_buffer.ptr-1])
8383
firstpartsub = substitution(firstpart)
8484
if firstpart != firstpartsub
85+
hint == true && return ([firstpart * " --> " * firstpartsub], firstpart, true)
8586
return ([firstpartsub], firstpart, true)
8687
elseif VERSION <= v"1.9-"
8788
return complete_line(x.repl_completion_provider, s)

0 commit comments

Comments
 (0)