diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-11-29 09:49:44 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 09:49:44 -0600 |
commit | 400b7842a98355bc3fcf2ecfaeda8ccf259d917a (patch) | |
tree | 8b1a39c870fb9b151060d1b5f517e83bea629263 /runtime/lua/vim/termcap.lua | |
parent | 9b4b23493d6976613fc3e8b561c34bb4b808399c (diff) | |
download | rneovim-400b7842a98355bc3fcf2ecfaeda8ccf259d917a.tar.gz rneovim-400b7842a98355bc3fcf2ecfaeda8ccf259d917a.tar.bz2 rneovim-400b7842a98355bc3fcf2ecfaeda8ccf259d917a.zip |
fix(termcap): escape escapes in passthrough sequence (#26301)
When using the tmux passthrough sequence any escape characters in the
inner sequence must be escaped by adding another escape character.
Diffstat (limited to 'runtime/lua/vim/termcap.lua')
-rw-r--r-- | runtime/lua/vim/termcap.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/termcap.lua b/runtime/lua/vim/termcap.lua index 2117f287cb..862cc52149 100644 --- a/runtime/lua/vim/termcap.lua +++ b/runtime/lua/vim/termcap.lua @@ -53,7 +53,7 @@ function M.query(caps, cb) -- If running in tmux, wrap with the passthrough sequence if os.getenv('TMUX') then - query = string.format('\027Ptmux;\027%s\027\\', query) + query = string.format('\027Ptmux;%s\027\\', query:gsub('\027', '\027\027')) end io.stdout:write(query) |