mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
parent
b8ae09b3cf
commit
013bd4461d
@ -338,7 +338,7 @@ void terminal_resize(Terminal *term, uint16_t width, uint16_t height)
|
|||||||
// terminal in the current tab.
|
// terminal in the current tab.
|
||||||
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
|
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
|
||||||
if (!wp->w_closing && wp->w_buffer == term->buf) {
|
if (!wp->w_closing && wp->w_buffer == term->buf) {
|
||||||
width = (uint16_t)MIN(width, (uint16_t)wp->w_width);
|
width = (uint16_t)MIN(width, (uint16_t)(wp->w_width - win_col_off(wp)));
|
||||||
height = (uint16_t)MIN(height, (uint16_t)wp->w_height);
|
height = (uint16_t)MIN(height, (uint16_t)wp->w_height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -358,6 +358,9 @@ void terminal_enter(bool process_deferred)
|
|||||||
Terminal *term = curbuf->terminal;
|
Terminal *term = curbuf->terminal;
|
||||||
assert(term && "should only be called when curbuf has a terminal");
|
assert(term && "should only be called when curbuf has a terminal");
|
||||||
|
|
||||||
|
// Ensure the terminal is properly sized.
|
||||||
|
terminal_resize(term, 0, 0);
|
||||||
|
|
||||||
checkpcmark();
|
checkpcmark();
|
||||||
setpcmark();
|
setpcmark();
|
||||||
int save_state = State;
|
int save_state = State;
|
||||||
|
Loading…
Reference in New Issue
Block a user