Skip to content

Commit

Permalink
fix: don't checkout mappings when they're not loaded (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
yehuohan authored Oct 31, 2023
1 parent a75b915 commit 275dcbc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/hop/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ function M.checkout(pat, opts)
end
end

if dict_char_pat == '' then
dict_pat = dict_pat .. char
else
if dict_char_pat ~= '' then
dict_pat = dict_pat .. '[' .. dict_char_pat .. ']'
end
end
Expand Down

0 comments on commit 275dcbc

Please sign in to comment.