mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
Merge pull request #4314 from justinmk/mksession_terminal
mksession: Restore buftype=terminal windows.
This commit is contained in:
@@ -8774,19 +8774,18 @@ static int ses_do_frame(frame_T *fr)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/// Return non-zero if window "wp" is to be stored in the Session.
|
||||||
* Return non-zero if window "wp" is to be stored in the Session.
|
|
||||||
*/
|
|
||||||
static int ses_do_win(win_T *wp)
|
static int ses_do_win(win_T *wp)
|
||||||
{
|
{
|
||||||
if (wp->w_buffer->b_fname == NULL
|
if (wp->w_buffer->b_fname == NULL
|
||||||
/* When 'buftype' is "nofile" can't restore the window contents. */
|
// When 'buftype' is "nofile" can't restore the window contents.
|
||||||
|| bt_nofile(wp->w_buffer)
|
|| (!wp->w_buffer->terminal && bt_nofile(wp->w_buffer))) {
|
||||||
)
|
|
||||||
return ssop_flags & SSOP_BLANK;
|
return ssop_flags & SSOP_BLANK;
|
||||||
if (wp->w_buffer->b_help)
|
}
|
||||||
|
if (wp->w_buffer->b_help) {
|
||||||
return ssop_flags & SSOP_HELP;
|
return ssop_flags & SSOP_HELP;
|
||||||
return TRUE;
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user