Skip to content

Commit 5194652

Browse files
IanButterworthKristofferC
authored andcommitted
REPL: run repl hint generation for modeswitch chars when not switching (#56251)
Fixes #56003
1 parent 5dd9574 commit 5194652

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/REPL/src/REPL.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,7 @@ function setup_interface(
14311431
end
14321432
else
14331433
edit_insert(s, ';')
1434+
LineEdit.check_for_hint(s) && LineEdit.refresh_line(s)
14341435
end
14351436
end,
14361437
'?' => function (s::MIState,o...)
@@ -1441,6 +1442,7 @@ function setup_interface(
14411442
end
14421443
else
14431444
edit_insert(s, '?')
1445+
LineEdit.check_for_hint(s) && LineEdit.refresh_line(s)
14441446
end
14451447
end,
14461448
']' => function (s::MIState,o...)
@@ -1477,6 +1479,7 @@ function setup_interface(
14771479
Base.errormonitor(t_replswitch)
14781480
else
14791481
edit_insert(s, ']')
1482+
LineEdit.check_for_hint(s) && LineEdit.refresh_line(s)
14801483
end
14811484
end,
14821485

0 commit comments

Comments
 (0)