Skip to content

Commit e91b8be

Browse files
REPL: run repl hint generation for modeswitch chars when not switching (#56251)
Fixes #56003 (cherry picked from commit 1fd7ada)
1 parent d59df0b commit e91b8be

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
@@ -1224,6 +1224,7 @@ function setup_interface(
12241224
end
12251225
else
12261226
edit_insert(s, ';')
1227+
LineEdit.check_for_hint(s) && LineEdit.refresh_line(s)
12271228
end
12281229
end,
12291230
'?' => function (s::MIState,o...)
@@ -1234,6 +1235,7 @@ function setup_interface(
12341235
end
12351236
else
12361237
edit_insert(s, '?')
1238+
LineEdit.check_for_hint(s) && LineEdit.refresh_line(s)
12371239
end
12381240
end,
12391241
']' => function (s::MIState,o...)
@@ -1270,6 +1272,7 @@ function setup_interface(
12701272
Base.errormonitor(t_replswitch)
12711273
else
12721274
edit_insert(s, ']')
1275+
LineEdit.check_for_hint(s) && LineEdit.refresh_line(s)
12731276
end
12741277
end,
12751278

0 commit comments

Comments
 (0)