mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.4610: some conditions are always true
Problem: Some conditions are always true. Solution: Remove the useless conditions. (closes #9993)
This commit is contained in:
@@ -5691,8 +5691,7 @@ frame_setheight(frame_T *curfrp, int height)
|
||||
break;
|
||||
if (run == 2 || curfrp->fr_width == Columns)
|
||||
{
|
||||
if (height > room + room_cmdline)
|
||||
height = room + room_cmdline;
|
||||
height = room + room_cmdline;
|
||||
break;
|
||||
}
|
||||
frame_setheight(curfrp->fr_parent, height
|
||||
@@ -5876,8 +5875,7 @@ frame_setwidth(frame_T *curfrp, int width)
|
||||
break;
|
||||
if (run == 2 || curfrp->fr_height >= ROWS_AVAIL)
|
||||
{
|
||||
if (width > room)
|
||||
width = room;
|
||||
width = room;
|
||||
break;
|
||||
}
|
||||
frame_setwidth(curfrp->fr_parent, width
|
||||
|
Reference in New Issue
Block a user