Skip to content

Commit

Permalink
REPL: run repl hint generation for modeswitch chars when not switching (
Browse files Browse the repository at this point in the history
#56251)

Fixes #56003

(cherry picked from commit 1fd7ada)
  • Loading branch information
IanButterworth committed Oct 20, 2024
1 parent d59df0b commit e91b8be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stdlib/REPL/src/REPL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,7 @@ function setup_interface(
end
else
edit_insert(s, ';')
LineEdit.check_for_hint(s) && LineEdit.refresh_line(s)
end
end,
'?' => function (s::MIState,o...)
Expand All @@ -1234,6 +1235,7 @@ function setup_interface(
end
else
edit_insert(s, '?')
LineEdit.check_for_hint(s) && LineEdit.refresh_line(s)
end
end,
']' => function (s::MIState,o...)
Expand Down Expand Up @@ -1270,6 +1272,7 @@ function setup_interface(
Base.errormonitor(t_replswitch)
else
edit_insert(s, ']')
LineEdit.check_for_hint(s) && LineEdit.refresh_line(s)
end
end,

Expand Down

0 comments on commit e91b8be

Please sign in to comment.