comparison src/gui.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 59a1ff689b4d
children 7fad90423bd2
comparison
equal deleted inserted replaced
15712:bc1989f9bd37 15713:ad8b2c109b22
4403 #ifdef FEAT_DIFF 4403 #ifdef FEAT_DIFF
4404 || old_topfill != wp->w_topfill 4404 || old_topfill != wp->w_topfill
4405 #endif 4405 #endif
4406 ) 4406 )
4407 { 4407 {
4408 if (p_so != 0) 4408 if (get_scrolloff_value() != 0)
4409 { 4409 {
4410 cursor_correct(); /* fix window for 'so' */ 4410 cursor_correct(); /* fix window for 'so' */
4411 update_topline(); /* avoid up/down jump */ 4411 update_topline(); /* avoid up/down jump */
4412 } 4412 }
4413 if (old_cursor.lnum != wp->w_cursor.lnum) 4413 if (old_cursor.lnum != wp->w_cursor.lnum)