Skip to content

Commit

Permalink
refactor: Remove dead logic. (#302)
Browse files Browse the repository at this point in the history
It seems that this judgment will always be followed by the result
  • Loading branch information
weartist authored Feb 1, 2024
1 parent 0c02c52 commit f81bbef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nvim-surround/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ M.normal_callback = function(mode)
if not cache.normal.delimiters then
local char = input.get_char()
-- Get the delimiter pair based on the input character
cache.normal.delimiters = cache.normal.delimiters or config.get_delimiters(char, cache.normal.line_mode)
cache.normal.delimiters = config.get_delimiters(char, cache.normal.line_mode)
if not cache.normal.delimiters then
M.pending_surround = false
buffer.clear_highlights()
Expand Down

0 comments on commit f81bbef

Please sign in to comment.