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

(cherry picked from commit 99d8c7b)
  • Loading branch information
ranocha authored and KristofferC committed Aug 31, 2022
1 parent f2ed5c3 commit d68417f
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 @@ -1438,7 +1438,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 @@ -1453,7 +1453,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 d68417f

Please sign in to comment.