diff options
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 14 |
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 |