From dacd34364ff3af98bc2d357c43e3ce06638e2ce9 Mon Sep 17 00:00:00 2001 From: Jaehoon Hwang Date: Mon, 9 Oct 2023 01:48:24 -0700 Subject: feat(ui-ext): make 'mousehide' into proper ui_option (#25532) --- test/functional/ui/options_spec.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/functional/ui/options_spec.lua') diff --git a/test/functional/ui/options_spec.lua b/test/functional/ui/options_spec.lua index 9d20229ce1..58cd68d94a 100644 --- a/test/functional/ui/options_spec.lua +++ b/test/functional/ui/options_spec.lua @@ -19,6 +19,7 @@ describe('UI receives option updates', function() linespace=0, pumblend=0, mousefocus=false, + mousehide=true, mousemoveevent=false, showtabline=1, termguicolors=false, @@ -133,6 +134,12 @@ describe('UI receives option updates', function() eq(expected, screen.options) end) + command("set nomousehide") + expected.mousehide = false + screen:expect(function() + eq(expected, screen.options) + end) + command("set mousemoveevent") expected.mousemoveevent = true screen:expect(function() -- cgit From bf70a33f5e7de0218704126c149db24542e39766 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 14 Oct 2023 09:58:30 +0800 Subject: vim-patch:8.1.0822: peeking and flushing output slows down execution (#25629) Problem: Peeking and flushing output slows down execution. Solution: Do not update the mode message when global_busy is set. Do not flush when only peeking for a character. (Ken Takata) https://github.com/vim/vim/commit/cb574f415486adff645ce384979bfecf27f5be8c --- test/functional/ui/options_spec.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/functional/ui/options_spec.lua') diff --git a/test/functional/ui/options_spec.lua b/test/functional/ui/options_spec.lua index 58cd68d94a..f3817856f7 100644 --- a/test/functional/ui/options_spec.lua +++ b/test/functional/ui/options_spec.lua @@ -69,15 +69,18 @@ describe('UI receives option updates', function() eq({'mouse_on'}, evs) end) command("set mouse=") + screen:expect(function() + eq({'mouse_on', 'mouse_off'}, evs) + end) command("set mouse&") screen:expect(function() - eq({'mouse_on','mouse_off', 'mouse_on'}, evs) + eq({'mouse_on', 'mouse_off', 'mouse_on'}, evs) end) screen:detach() - eq({'mouse_on','mouse_off', 'mouse_on'}, evs) + eq({'mouse_on', 'mouse_off', 'mouse_on'}, evs) screen:attach() screen:expect(function() - eq({'mouse_on','mouse_off','mouse_on', 'mouse_on'}, evs) + eq({'mouse_on', 'mouse_off', 'mouse_on', 'mouse_on'}, evs) end) end) -- cgit From 8d9789a0f3b748b75ac4ae1b8e43d27af40d49fe Mon Sep 17 00:00:00 2001 From: Gregory Anders Date: Tue, 7 Nov 2023 11:31:21 -0600 Subject: docs: deprecate the "term_background" UI field --- test/functional/ui/options_spec.lua | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'test/functional/ui/options_spec.lua') diff --git a/test/functional/ui/options_spec.lua b/test/functional/ui/options_spec.lua index f3817856f7..6af1820430 100644 --- a/test/functional/ui/options_spec.lua +++ b/test/functional/ui/options_spec.lua @@ -210,22 +210,6 @@ describe('UI can set terminal option', function() screen = Screen.new(20,5) end) - it('term_background', function() - eq('dark', eval '&background') - - screen:attach {term_background='light'} - eq('light', eval '&background') - end) - - it("term_background but not if 'background' already set by user", function() - eq('dark', eval '&background') - command 'set background=dark' - - screen:attach {term_background='light'} - - eq('dark', eval '&background') - end) - it('term_name', function() eq('nvim', eval '&term') -- cgit From ac8ed77afb359694a716501d9e87b0c9949b2445 Mon Sep 17 00:00:00 2001 From: Gregory Anders <8965202+gpanders@users.noreply.github.com> Date: Tue, 14 Nov 2023 08:53:58 -0600 Subject: feat(tui): add 'termsync' option (#25871) The 'termsync' option enables a mode (provided the underlying terminal supports it) where all screen updates during a redraw cycle are buffered and drawn together when the redraw is complete. This eliminates tearing or flickering in cases where Nvim redraws slower than the terminal redraws the screen. --- test/functional/ui/options_spec.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'test/functional/ui/options_spec.lua') diff --git a/test/functional/ui/options_spec.lua b/test/functional/ui/options_spec.lua index 6af1820430..2c649709c6 100644 --- a/test/functional/ui/options_spec.lua +++ b/test/functional/ui/options_spec.lua @@ -23,6 +23,7 @@ describe('UI receives option updates', function() mousemoveevent=false, showtabline=1, termguicolors=false, + termsync=true, ttimeout=true, ttimeoutlen=50, verbose=0, -- cgit