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 @@ -338,9 +338,13 @@ function symbol_latex(s::String)
338
338
return get (symbols_latex, s, " " )
339
339
end
340
340
function repl_latex (io:: IO , s:: String )
341
- # decompose NFC-normalized identifier to match tab-completion input
342
- s = normalize (s, :NFD )
343
341
latex = symbol_latex (s)
342
+ if isempty (latex)
343
+ # Decompose NFC-normalized identifier to match tab-completion
344
+ # input if the first search came up empty.
345
+ s = normalize (s, :NFD )
346
+ latex = symbol_latex (s)
347
+ end
344
348
if ! isempty (latex)
345
349
print (io, " \" " )
346
350
printstyled (io, s, color= :cyan )
Original file line number Diff line number Diff line change @@ -1009,6 +1009,8 @@ end
1009
1009
1010
1010
# issue #36378 (\u1e8b and x\u307 are the fully composed and decomposed forms of ẋ, respectively)
1011
1011
@test sprint (repl_latex, " \u 1e8b" ) == " \" x\u 307\" can be typed by x\\ dot<tab>\n\n "
1012
+ # issue 39814
1013
+ @test sprint (repl_latex, " \u 2209" ) == " \"\u 2209\" can be typed by \\ notin<tab>\n\n "
1012
1014
1013
1015
# issue #15684
1014
1016
begin
You can’t perform that action at this time.
0 commit comments