Skip to content

Commit 1e85972

Browse files
committed
Don't translate termcodes twice on input
`getcharstr()` already returns raw internal termcodes, it is wrong to call nvim_replace_termcodes on its result. This effectively reverts PR #273 refs: neovim/neovim#29034 fixes: #325
1 parent 79aaa42 commit 1e85972

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/nvim-surround/input.lua

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ M.get_char = function()
99
if not ok or char == "\27" then
1010
return nil
1111
end
12-
-- Call this function, because config.translate_opts() does too
13-
return vim.api.nvim_replace_termcodes(char, true, true, true)
12+
return char
1413
end
1514

1615
-- Gets a string input from the user.

0 commit comments

Comments
 (0)