aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-06-02 03:48:36 +0800
committerGitHub <noreply@github.com>2022-06-02 03:48:36 +0800
commit57a296d899d170e7f78aec2225bf8ab2b0dc711c (patch)
tree082a19f7f7df82b489106af2620385b88887c092 /src/nvim/window.c
parent209824ce2c6d37332079e6e213d4b8e257d7d53b (diff)
downloadrneovim-57a296d899d170e7f78aec2225bf8ab2b0dc711c.tar.gz
rneovim-57a296d899d170e7f78aec2225bf8ab2b0dc711c.tar.bz2
rneovim-57a296d899d170e7f78aec2225bf8ab2b0dc711c.zip
fix(inccommand): avoid crash if callback changes inccommand option (#18830)
clang: Result of operation is garbage or undefined clang: Uninitialized argument value Also check for == 's' instead of != 'n' as it is more straightforward. Also fix another unrelated PVS warning: PVS/V1071: Return value of win_comp_pos() is not always used
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index a41f3362d2..5f4179944d 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -6678,7 +6678,7 @@ static bool resize_frame_for_winbar(frame_T *fr)
frame_new_height(fp, fp->fr_height - 1, false, false);
win_new_height(wp, wp->w_height + 1);
frame_fix_height(wp);
- win_comp_pos();
+ (void)win_comp_pos();
}
return true;