From c28192e6f9c16de3add78c5ecf8e732c241f945a Mon Sep 17 00:00:00 2001 From: bfredl Date: Wed, 18 May 2022 13:29:02 +0200 Subject: refactor: move more grid functions to grid.c. Clean up some variables --- src/nvim/os/input.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/os') diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index c99d2869da..e4a91d1416 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -19,6 +19,7 @@ #include "nvim/memory.h" #include "nvim/msgpack_rpc/channel.h" #include "nvim/os/input.h" +#include "nvim/screen.h" #include "nvim/state.h" #include "nvim/ui.h" #include "nvim/vim.h" -- cgit From 17758fe7ad0d5db54dc43e364d53f637a148e73f Mon Sep 17 00:00:00 2001 From: bfredl Date: Wed, 18 May 2022 13:51:59 +0200 Subject: fix(ui): make winbar work with floats and multigrid --- src/nvim/os/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/os') diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index e4a91d1416..7a50725461 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -183,7 +183,7 @@ void os_breakcheck(void) // We do not want screen_resize() to redraw here. // TODO(bfredl): we are already special casing redraw events, is this // hack still needed? - updating_screen++; + updating_screen = true; loop_poll_events(&main_loop, 0); -- cgit From 503d8b0892dbfee2d69286574f7eba3708b9a902 Mon Sep 17 00:00:00 2001 From: bfredl Date: Wed, 18 May 2022 18:28:54 +0200 Subject: refactor(events): remove unnecessary fudging of updating_screen This was not necessary after the introduction of `resize_events`, after which ui resizes are not `fast_events` anymore. --- src/nvim/os/input.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/nvim/os') diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index 7a50725461..ac21b32a3e 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -179,15 +179,7 @@ void os_breakcheck(void) return; } - int save_us = updating_screen; - // We do not want screen_resize() to redraw here. - // TODO(bfredl): we are already special casing redraw events, is this - // hack still needed? - updating_screen = true; - loop_poll_events(&main_loop, 0); - - updating_screen = save_us; } #define BREAKCHECK_SKIP 1000 -- cgit