diff options
author | Daniel Hahler <git@thequod.de> | 2015-05-25 13:47:01 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-05-25 14:42:12 -0400 |
commit | 297973ab00155048a627e8bf72ff4b14d71a6a01 (patch) | |
tree | 488968477cb5dc4ba9714bac52fc35c4a3185e64 /src | |
parent | 8ce22c63230589c3b185c3193e1c189b975ba7f6 (diff) | |
download | rneovim-297973ab00155048a627e8bf72ff4b14d71a6a01.tar.gz rneovim-297973ab00155048a627e8bf72ff4b14d71a6a01.tar.bz2 rneovim-297973ab00155048a627e8bf72ff4b14d71a6a01.zip |
tui: defer resize event #2738
When maximizing the window, often only lines would be detected properly
with the `try_resize` handler being called immediately.
Fixes https://github.com/neovim/neovim/issues/2322.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/tui/tui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 763a7c0e6d..1a8e4523b7 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -208,10 +208,11 @@ static void try_resize(Event ev) static void sigwinch_cb(uv_signal_t *handle, int signum) { // Queue the event because resizing can result in recursive event_poll calls + // FIXME(blueyed): TUI does not resize properly when not deferred. Why? #2322 event_push((Event) { .data = handle->data, .handler = try_resize - }, false); + }, true); } static bool attrs_differ(HlAttrs a1, HlAttrs a2) |