0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4248: no proper test for moving the window separator

Problem:    No proper test for moving the window separator.
Solution:   Add a test.  Add comment in code. (closes #9656)
This commit is contained in:
zeertzjq
2022-01-29 10:59:53 +00:00
committed by Bram Moolenaar
parent 06f15416bb
commit a0c4e2f2d7
3 changed files with 24 additions and 1 deletions

View File

@@ -6187,7 +6187,9 @@ win_drag_vsep_line(win_T *dragwin, int offset)
if (offset <= 0) // No room at all, quit.
return;
if (fr == NULL)
return; // Safety check, should not happen.
// This can happen when calling win_move_separator() on the rightmost
// window. Just don't do anything.
return;
// grow frame fr by offset lines
frame_new_width(fr, fr->fr_width + offset, left, FALSE);