diff options
| author | Gregory Anders <greg@gpanders.com> | 2025-03-05 09:45:22 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-05 09:45:22 -0600 |
| commit | 35e5307af25785ac90bd00f913fc0df5cf962db3 (patch) | |
| tree | 2c85bf2f4aa867434b866b39b94d7bf5ef050117 /test/functional/editor/defaults_spec.lua | |
| parent | 84487036624df8243f6dedc9f36dfc10789c5f47 (diff) | |
| download | rneovim-35e5307af25785ac90bd00f913fc0df5cf962db3.tar.gz rneovim-35e5307af25785ac90bd00f913fc0df5cf962db3.tar.bz2 rneovim-35e5307af25785ac90bd00f913fc0df5cf962db3.zip | |
feat(terminal)!: include cursor position in TermRequest event data (#31609)
When a plugin registers a TermRequest handler there is currently no way
for the handler to know where the terminal's cursor position was when
the sequence was received. This is often useful information, e.g. for
OSC 133 sequences which are used to annotate shell prompts.
Modify the event data for the TermRequest autocommand to be a table
instead of just a string. The "sequence" field of the table contains the
sequence string and the "cursor" field contains the cursor
position when the sequence was received.
To maintain consistency between TermRequest and TermResponse (and to
future proof the latter), TermResponse's event data is also updated to
be a table with a "sequence" field.
BREAKING CHANGE: event data for TermRequest and TermResponse is now a
table
Diffstat (limited to 'test/functional/editor/defaults_spec.lua')
| -rw-r--r-- | test/functional/editor/defaults_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/editor/defaults_spec.lua b/test/functional/editor/defaults_spec.lua index 876810ce6f..9843238e35 100644 --- a/test/functional/editor/defaults_spec.lua +++ b/test/functional/editor/defaults_spec.lua @@ -10,7 +10,7 @@ local Screen = require('test.functional.ui.screen') describe('default', function() describe('autocommands', function() - it('nvim_terminal.TermClose closes terminal with default shell on success', function() + it('nvim.terminal.TermClose closes terminal with default shell on success', function() n.clear() n.api.nvim_set_option_value('shell', n.testprg('shell-test'), {}) n.command('set shellcmdflag=EXIT shellredir= shellpipe= shellquote= shellxquote=') |