diff options
Diffstat (limited to 'src/mark.c')
-rw-r--r-- | src/mark.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mark.c b/src/mark.c index 3dddad65d..03b9f9897 100644 --- a/src/mark.c +++ b/src/mark.c @@ -1023,6 +1023,9 @@ mark_adjust(line1, line2, amount, amount_after) int fnum = curbuf->b_fnum; linenr_T *lp; win_T *win; +#ifdef FEAT_WINDOWS + tabpage_T *tab; +#endif if (line2 < line1 && amount_after == 0L) /* nothing to do */ return; @@ -1064,7 +1067,7 @@ mark_adjust(line1, line2, amount, amount_after) /* quickfix marks */ qf_mark_adjust(NULL, line1, line2, amount, amount_after); /* location lists */ - FOR_ALL_WINDOWS(win) + FOR_ALL_TAB_WINDOWS(tab, win) qf_mark_adjust(win, line1, line2, amount, amount_after); #endif @@ -1086,7 +1089,7 @@ mark_adjust(line1, line2, amount, amount_after) /* * Adjust items in all windows related to the current buffer. */ - FOR_ALL_WINDOWS(win) + FOR_ALL_TAB_WINDOWS(tab, win) { #ifdef FEAT_JUMPLIST if (!cmdmod.lockmarks) |