mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00:00
multigrid: Allow UIs to set grid size different from window size
This commit is contained in:

committed by
Björn Linse

parent
f102f50ebe
commit
01555de2da
@@ -9196,7 +9196,7 @@ static int ses_winsizes(FILE *fd, int restore_size, win_T *tab_firstwin)
|
||||
&& (fprintf(fd,
|
||||
"exe '%dresize ' . ((&lines * %" PRId64
|
||||
" + %" PRId64 ") / %" PRId64 ")",
|
||||
n, (int64_t)wp->w_height,
|
||||
n, (int64_t)wp->w_grid.Rows,
|
||||
(int64_t)(Rows / 2), (int64_t)Rows) < 0
|
||||
|| put_eol(fd) == FAIL))
|
||||
return FAIL;
|
||||
@@ -9459,8 +9459,8 @@ put_view(
|
||||
" * winheight(0) + %" PRId64 ") / %" PRId64 ")",
|
||||
(int64_t)wp->w_cursor.lnum,
|
||||
(int64_t)(wp->w_cursor.lnum - wp->w_topline),
|
||||
(int64_t)(wp->w_height / 2),
|
||||
(int64_t)wp->w_height) < 0
|
||||
(int64_t)(wp->w_grid.Rows / 2),
|
||||
(int64_t)wp->w_grid.Rows) < 0
|
||||
|| put_eol(fd) == FAIL
|
||||
|| put_line(fd, "if s:l < 1 | let s:l = 1 | endif") == FAIL
|
||||
|| put_line(fd, "exe s:l") == FAIL
|
||||
|
Reference in New Issue
Block a user