comparison src/edit.c @ 15713:ad8b2c109b22 v8.1.0864

patch 8.1.0864: cannot have a local value for 'scrolloff' and 'sidescrolloff' commit https://github.com/vim/vim/commit/375e3390078e740d3c83b0c118c50d9a920036c7 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 31 18:26:10 2019 +0100 patch 8.1.0864: cannot have a local value for 'scrolloff' and 'sidescrolloff' Problem: Cannot have a local value for 'scrolloff' and 'sidescrolloff'. (Gary Holloway) Solution: Make 'scrolloff' and 'sidescrolloff' global-local. (mostly by Aron Widforss, closes #3539)
author Bram Moolenaar <Bram@vim.org>
date Thu, 31 Jan 2019 18:30:08 +0100
parents 60e13da09d07
children 56be1282994f
comparison
equal deleted inserted replaced
15712:bc1989f9bd37 15713:ad8b2c109b22
726 curbuf->b_p_vts_array) 726 curbuf->b_p_vts_array)
727 #else 727 #else
728 (int)curwin->w_wcol < mincol - curbuf->b_p_ts 728 (int)curwin->w_wcol < mincol - curbuf->b_p_ts
729 #endif 729 #endif
730 && curwin->w_wrow == W_WINROW(curwin) 730 && curwin->w_wrow == W_WINROW(curwin)
731 + curwin->w_height - 1 - p_so 731 + curwin->w_height - 1 - get_scrolloff_value()
732 && (curwin->w_cursor.lnum != curwin->w_topline 732 && (curwin->w_cursor.lnum != curwin->w_topline
733 #ifdef FEAT_DIFF 733 #ifdef FEAT_DIFF
734 || curwin->w_topfill > 0 734 || curwin->w_topfill > 0
735 #endif 735 #endif
736 )) 736 ))