File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -403,9 +403,13 @@ function symbol_latex(s::String)
403
403
return get (symbols_latex, s, " " )
404
404
end
405
405
function repl_latex (io:: IO , s:: String )
406
- # decompose NFC-normalized identifier to match tab-completion input
407
- s = normalize (s, :NFD )
408
406
latex = symbol_latex (s)
407
+ if isempty (latex)
408
+ # Decompose NFC-normalized identifier to match tab-completion
409
+ # input if the first search came up empty.
410
+ s = normalize (s, :NFD )
411
+ latex = symbol_latex (s)
412
+ end
409
413
if ! isempty (latex)
410
414
print (io, " \" " )
411
415
printstyled (io, s, color= :cyan )
Original file line number Diff line number Diff line change @@ -1271,6 +1271,8 @@ end
1271
1271
1272
1272
# issue #36378 (\u1e8b and x\u307 are the fully composed and decomposed forms of ẋ, respectively)
1273
1273
@test sprint (repl_latex, " \u 1e8b" ) == " \" x\u 307\" can be typed by x\\ dot<tab>\n\n "
1274
+ # issue 39814
1275
+ @test sprint (repl_latex, " \u 2209" ) == " \"\u 2209\" can be typed by \\ notin<tab>\n\n "
1274
1276
1275
1277
# issue #15684
1276
1278
begin
You can’t perform that action at this time.
0 commit comments