aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-01-27 15:18:41 +0800
committerGitHub <noreply@github.com>2024-01-27 15:18:41 +0800
commitbf9e92c81c3cec65be5359d6b6a2ba1177995279 (patch)
tree3366ad701748d110980c87858be6c0f3279b54ed /src
parent7367838359bfb5fadf72ea2aeea2f84efb34590e (diff)
downloadrneovim-bf9e92c81c3cec65be5359d6b6a2ba1177995279.tar.gz
rneovim-bf9e92c81c3cec65be5359d6b6a2ba1177995279.tar.bz2
rneovim-bf9e92c81c3cec65be5359d6b6a2ba1177995279.zip
fix(events): check for WinResized/WinScrolled in terminal mode (#27226)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/terminal.c3
-rw-r--r--src/nvim/window.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index 00acbfb602..499f31454e 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -93,6 +93,7 @@
#include "nvim/types_defs.h"
#include "nvim/ui.h"
#include "nvim/vim_defs.h"
+#include "nvim/window.h"
typedef struct {
VimState state;
@@ -615,6 +616,8 @@ static int terminal_check(VimState *state)
curbuf->b_locked--;
}
+ may_trigger_win_scrolled_resized();
+
if (need_maketitle) { // Update title in terminal-mode. #7248
maketitle();
}
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 66d090b0c8..23779d1e7b 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -5367,7 +5367,7 @@ static int check_window_scroll_resize(int *size_count, win_T **first_scroll_win,
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
// Skip floating windows that do not have a snapshot (usually because they are newly-created),
- // as unlike split windows, creating floating windows do not cause other windows to resize.
+ // as unlike split windows, creating floating windows doesn't cause other windows to resize.
if (wp->w_floating && wp->w_last_topline == 0) {
wp->w_last_topline = wp->w_topline;
wp->w_last_topfill = wp->w_topfill;