mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
vim-patch:7.4.2101
Problem: Looping over windows, buffers and tab pages is inconsistant.
Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
2932359000
This commit is contained in:
@@ -3512,7 +3512,8 @@ void check_scrollbind(linenr_T topline_diff, long leftcol_diff)
|
||||
* loop through the scrollbound windows and scroll accordingly
|
||||
*/
|
||||
VIsual_select = VIsual_active = 0;
|
||||
for (curwin = firstwin; curwin; curwin = curwin->w_next) {
|
||||
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
|
||||
curwin = wp;
|
||||
curbuf = curwin->w_buffer;
|
||||
/* skip original window and windows with 'noscrollbind' */
|
||||
if (curwin == old_curwin || !curwin->w_p_scb) {
|
||||
|
Reference in New Issue
Block a user