From f81bbef3da28bd2a7d5a736575c71f3f953d49f9 Mon Sep 17 00:00:00 2001 From: Hans Date: Thu, 1 Feb 2024 12:52:20 +0800 Subject: [PATCH] refactor: Remove dead logic. (#302) It seems that this judgment will always be followed by the result --- lua/nvim-surround/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-surround/init.lua b/lua/nvim-surround/init.lua index c11bee8..3768563 100644 --- a/lua/nvim-surround/init.lua +++ b/lua/nvim-surround/init.lua @@ -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()