summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-09-21 16:56:35 +0200
committerBram Moolenaar <Bram@vim.org>2010-09-21 16:56:35 +0200
commit3368ea215249b08ebaf64247f7a4f542fb6ba060 (patch)
tree5ea97ed3ee06b2b0f3468fccd7b7f6b9edce9634 /src/macros.h
parent2eea198564930225d51188682f548332a064037f (diff)
downloadvim-git-3368ea215249b08ebaf64247f7a4f542fb6ba060.tar.gz
updated for version 7.3.008v7.3.008
Problem: 'cursorbind' is kept in places where 'scrollbind' is reset. Solution: Reset 'cursorbind'.
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h
index 599b40398..be3af9a5c 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -285,3 +285,17 @@
#else
# define DO_AUTOCHDIR
#endif
+
+#if defined(FEAT_SCROLLBIND) && defined(FEAT_CURSORBIND)
+# define RESET_BINDING(wp) (wp)->w_p_scb = FALSE; (wp)->w_p_crb = FALSE
+#else
+# if defined(FEAT_SCROLLBIND)
+# define RESET_BINDING(wp) (wp)->w_p_scb = FALSE
+# else
+# if defined(FEAT_CURSORBIND)
+# define RESET_BINDING(wp) (wp)->w_p_crb = FALSE
+# else
+# define RESET_BINDING(wp)
+# endif
+# endif
+#endif