summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-04-29 09:02:44 +0000
committerBram Moolenaar <Bram@vim.org>2009-04-29 09:02:44 +0000
commitbd1e5d2e1d74e5c0a2543e87da42603b00589ebc (patch)
treec5e410c40fd5a9103e1d1b03b854fec811988496 /src/misc1.c
parentf242762d0d04c69c75215c05e6b6cd47df227dea (diff)
downloadvim-git-bd1e5d2e1d74e5c0a2543e87da42603b00589ebc.tar.gz
updated for version 7.2-161v7.2.161
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/misc1.c b/src/misc1.c
index 3fdcdecb1..100baa2f1 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -2717,6 +2717,9 @@ changed_common(lnum, col, lnume, xtra)
long xtra;
{
win_T *wp;
+#ifdef FEAT_WINDOWS
+ tabpage_T *tp;
+#endif
int i;
#ifdef FEAT_JUMPLIST
int cols;
@@ -2769,7 +2772,7 @@ changed_common(lnum, col, lnume, xtra)
curbuf->b_changelistlen = JUMPLISTSIZE - 1;
mch_memmove(curbuf->b_changelist, curbuf->b_changelist + 1,
sizeof(pos_T) * (JUMPLISTSIZE - 1));
- FOR_ALL_WINDOWS(wp)
+ FOR_ALL_TAB_WINDOWS(tp, wp)
{
/* Correct position in changelist for other windows on
* this buffer. */
@@ -2777,7 +2780,7 @@ changed_common(lnum, col, lnume, xtra)
--wp->w_changelistidx;
}
}
- FOR_ALL_WINDOWS(wp)
+ FOR_ALL_TAB_WINDOWS(tp, wp)
{
/* For other windows, if the position in the changelist is
* at the end it stays at the end. */
@@ -2796,7 +2799,7 @@ changed_common(lnum, col, lnume, xtra)
#endif
}
- FOR_ALL_WINDOWS(wp)
+ FOR_ALL_TAB_WINDOWS(tp, wp)
{
if (wp->w_buffer == curbuf)
{