aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_defaults.lua
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2025-03-05 21:28:05 -0600
committerGitHub <noreply@github.com>2025-03-05 21:28:05 -0600
commit0c0352783fca7e9c56cd5ca8253834fee77c9d59 (patch)
treefc8da7fc6e0609ad9eea96e24ccfa54fcec4aea1 /runtime/lua/vim/_defaults.lua
parent9c4f2cde7bef5decb2de98edfae7b5a2e5146cf4 (diff)
downloadrneovim-0c0352783fca7e9c56cd5ca8253834fee77c9d59.tar.gz
rneovim-0c0352783fca7e9c56cd5ca8253834fee77c9d59.tar.bz2
rneovim-0c0352783fca7e9c56cd5ca8253834fee77c9d59.zip
fix(tui): remove DCS escaping in tmux (#32723)
Per https://github.com/tmux/tmux/issues/4386, tmux does not support DCS responses, even if the initial request was escaped.
Diffstat (limited to 'runtime/lua/vim/_defaults.lua')
-rw-r--r--runtime/lua/vim/_defaults.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/lua/vim/_defaults.lua b/runtime/lua/vim/_defaults.lua
index 544b0acbcc..17a8a3f3cc 100644
--- a/runtime/lua/vim/_defaults.lua
+++ b/runtime/lua/vim/_defaults.lua
@@ -834,9 +834,7 @@ do
-- terminal responds to the DECRQSS with the same SGR sequence that we
-- sent then the terminal supports truecolor.
local decrqss = '\027P$qm\027\\'
- if os.getenv('TMUX') then
- decrqss = string.format('\027Ptmux;%s\027\\', decrqss:gsub('\027', '\027\027'))
- end
+
-- Reset attributes first, as other code may have set attributes.
io.stdout:write(string.format('\027[0m\027[48;2;%d;%d;%dm%s', r, g, b, decrqss))