mirror of
https://github.com/neovim/neovim.git
synced 2025-11-03 09:14:24 +00:00
vim-patch:8.2.2244: crash when making the window width negative (#13633)
Problem: Crash when making the window width of the not-current window
negative.
Solution: Make sure the window width is not negative. (closes vim/vim#7568)
89015a6759
N/A patches for version.c:
vim-patch:8.0.1617: Win32: :shell command in the GUI crashes
Problem: Win32: :shell command in the GUI crashes.
Solution: Handle the situation that "cmd" is NULL. (Yasuhiro Matsumoto,
closes vim/vim#2721)
42f652f733
vim-patch:8.1.0244: no redraw when using a STOP signal on Vim and then CONT
Problem: No redraw when using a STOP signal on Vim and then a CONT signal.
Solution: Catch the CONT signal and force a redraw. (closes vim/vim#3285)
917e32bda5
vim-patch:8.1.0302: crash when using :suspend and "fg"
Problem: Crash when using :suspend and "fg".
Solution: Undo patch 8.1.244.
f1883479be
vim-patch:8.1.0548: crash when job callback unloads a buffer
Problem: Crash when job callback unloads a buffer. (James McCoy)
Solution: Don't round up the wait time to 10 msec in ui_inchar().
1341024e08
vim-patch:8.1.1652: GUI: popup window doesn't close on mouse movement
Problem: GUI: popup window doesn't close on mouse movement. (Paul Jolly)
Solution: Generate mouse-move events when a popup window is visible.
49fe95f225
vim-patch:8.1.1695: Windows 10: crash when cursor is at bottom of terminal
Problem: Windows 10: crash when cursor is at bottom of terminal.
Solution: Position the cursor before resizing. (Yasuhiro Matsumoto,
closes vim/vim#4679)
f49a692259
vim-patch:8.2.2246: cursor keys not recognized at the hit-Enter prompt
Problem: Cursor keys not recognized at the hit-Enter prompt after executing
an external command.
Solution: Change the codes for the extra cursor keys. (closes vim/vim#7562)
Tune the delays to avoid test flakyness.
4d8c96d466
This commit is contained in:
@@ -850,6 +850,14 @@ func Test_window_resize()
|
||||
exe other_winnr .. 'resize +1'
|
||||
call assert_equal(12, winheight(other_winnr))
|
||||
call assert_equal(&lines - 10 - 3 -2, winheight(0))
|
||||
close
|
||||
|
||||
vsplit
|
||||
wincmd l
|
||||
let other_winnr = winnr('h')
|
||||
call assert_notequal(winnr(), other_winnr)
|
||||
exe 'vert ' .. other_winnr .. 'resize -100'
|
||||
call assert_equal(0, winwidth(other_winnr))
|
||||
|
||||
%bwipe!
|
||||
endfunc
|
||||
|
||||
@@ -5349,6 +5349,8 @@ void win_setwidth_win(int width, win_T *wp)
|
||||
width = p_wmw;
|
||||
if (width == 0)
|
||||
width = 1;
|
||||
} else if (width < 0) {
|
||||
width = 0;
|
||||
}
|
||||
if (wp->w_floating) {
|
||||
wp->w_float_config.width = width;
|
||||
|
||||
Reference in New Issue
Block a user