mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
Merge #9614
This commit is contained in:
commit
4031e93c45
@ -91,8 +91,8 @@ void ga_grow(garray_T *gap, int n)
|
||||
}
|
||||
int new_maxlen = gap->ga_len + n;
|
||||
|
||||
size_t new_size = (size_t)(gap->ga_itemsize * new_maxlen);
|
||||
size_t old_size = (size_t)(gap->ga_itemsize * gap->ga_maxlen);
|
||||
size_t new_size = (size_t)gap->ga_itemsize * (size_t)new_maxlen;
|
||||
size_t old_size = (size_t)gap->ga_itemsize * (size_t)gap->ga_maxlen;
|
||||
|
||||
// reallocate and clear the new memory
|
||||
char *pp = xrealloc(gap->ga_data, new_size);
|
||||
|
@ -1300,6 +1300,7 @@ static void win_rotate(int upwards, int count)
|
||||
if (upwards) { /* first window becomes last window */
|
||||
/* remove first window/frame from the list */
|
||||
frp = curwin->w_frame->fr_parent->fr_child;
|
||||
assert(frp != NULL);
|
||||
wp1 = frp->fr_win;
|
||||
win_remove(wp1, NULL);
|
||||
frame_remove(frp);
|
||||
|
Loading…
Reference in New Issue
Block a user