diff options
| author | Barrett Ruth <62671086+barrettruth@users.noreply.github.com> | 2026-06-24 09:40:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-24 10:40:36 -0400 |
| commit | 8bf7fc810a1ed1cd401abd1b90741085923f78df (patch) | |
| tree | 3706d7d342e26697d315fd1667e7f11217521816 /runtime/ftplugin/python.vim | |
| parent | 08a1228f8243415d199f4a6c3adce8dc1b36b551 (diff) | |
| download | rneovim-8bf7fc810a1ed1cd401abd1b90741085923f78df.tar.gz rneovim-8bf7fc810a1ed1cd401abd1b90741085923f78df.tar.bz2 rneovim-8bf7fc810a1ed1cd401abd1b90741085923f78df.zip | |
fix(tty): filter terminal probes by channel #40356
Problem:
Terminal probes sent with `nvim_ui_send()` can reach more than one stdout TTY
UI. Probes with a known TTY UI owner should not accept `TermResponse`s from
unrelated UI channels.
Solution:
Thread the existing `chan` filter through owned terminal probes. This covers
startup/attach background detection, fallback truecolor detection, and
`vim.tty.query()` forwarding opts to `vim.tty.request()`.
Note: Not every terminal escape path is updated here. I only passed `chan` when
the caller already knows which TTY UI owns the probe. For example, this does
not include:
- (Followup) OSC 52 (system clipboard) detection. It needs to capture the
`UIEnter` channel. Adding `{ chan = ... }` only to the nested query would be
half a fix.
- OSC 52 _paste_ is left global because the provider callback does not have
a UI channel (paste is invoked without a ui channel/tty ui object).
Diffstat (limited to 'runtime/ftplugin/python.vim')
0 files changed, 0 insertions, 0 deletions