mirror of
https://github.com/neovim/neovim.git
synced 2026-08-27 09:31:47 +00:00
fix(terminal): don't disable scrolloff for non-terminal buffers (#34451)
This commit is contained in:
@@ -6321,7 +6321,8 @@ dict_T *get_winbuf_options(const int bufopt)
|
||||
int get_scrolloff_value(win_T *wp)
|
||||
{
|
||||
// Disallow scrolloff in terminal-mode. #11915
|
||||
if (State & MODE_TERMINAL) {
|
||||
// Still allow 'scrolloff' for non-terminal buffers. #34447
|
||||
if ((State & MODE_TERMINAL) && wp->w_buffer->terminal) {
|
||||
return 0;
|
||||
}
|
||||
return (int)(wp->w_p_so < 0 ? p_so : wp->w_p_so);
|
||||
|
||||
Reference in New Issue
Block a user