From 5674057e3a5597f792a077d714bd7d32af81bfc8 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Tue, 7 Mar 2017 09:13:54 -0500 Subject: vim-patch:7.4.2069 Problem: spell.c is too big. Solution: Split it in spell file handling and spell checking. https://github.com/vim/vim/commit/9ccfebddc3ff2a3c2853cf706fd4c26f639bf381 --- src/nvim/normal.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/normal.c') diff --git a/src/nvim/normal.c b/src/nvim/normal.c index d010b4b3a7..38507486fd 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -45,6 +45,7 @@ #include "nvim/screen.h" #include "nvim/search.h" #include "nvim/spell.h" +#include "nvim/spellfile.h" #include "nvim/strings.h" #include "nvim/syntax.h" #include "nvim/tag.h" -- cgit From 564e9dc17fd53ab6cb1bc63a55dba2df9538a31f Mon Sep 17 00:00:00 2001 From: James McCoy Date: Fri, 10 Mar 2017 16:13:37 -0500 Subject: vim-patch:7.4.2101 Problem: Looping over windows, buffers and tab pages is inconsistant. Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/2932359000b2f918d5fade79ea4d124d5943cd07 --- src/nvim/normal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/nvim/normal.c') diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 38507486fd..ee3c3f9f11 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -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) { -- cgit