Skip to content

Commit

Permalink
fix invalidations in REPL LineEdit.jl from Static.jl (#46548)
Browse files Browse the repository at this point in the history
* fix invalidations in REPL LineEdit.jl from Static.jl
  • Loading branch information
ranocha authored Aug 31, 2022
1 parent 4862893 commit 99d8c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/REPL/src/LineEdit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ function normalize_keys(keymap::Union{Dict{Char,Any},AnyDict})
return ret
end

function add_nested_key!(keymap::Dict, key::Union{String, Char}, value; override = false)
function add_nested_key!(keymap::Dict{Char, Any}, key::Union{String, Char}, value; override::Bool = false)
y = iterate(key)
while y !== nothing
c, i = y
Expand All @@ -1563,7 +1563,7 @@ function add_nested_key!(keymap::Dict, key::Union{String, Char}, value; override
elseif !(c in keys(keymap) && isa(keymap[c], Dict))
keymap[c] = Dict{Char,Any}()
end
keymap = keymap[c]
keymap = keymap[c]::Dict{Char, Any}
end
end

Expand Down

0 comments on commit 99d8c7b

Please sign in to comment.