From 5f2ccb94d2103969aabed9e57f1a0b0b691a3356 Mon Sep 17 00:00:00 2001 From: Hinidu Date: Fri, 11 Apr 2014 23:45:48 +0300 Subject: [PATCH] Remove FEAT_CURSORBIND Synchronization of cursor in split windows for diff mode --- config/config.h.in | 1 - src/nvim/buffer.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/config/config.h.in b/config/config.h.in index ae429a2f2f..c88a1eb33d 100644 --- a/config/config.h.in +++ b/config/config.h.in @@ -106,7 +106,6 @@ #define FEAT_CMDHIST #define FEAT_CONCEAL #define FEAT_CSCOPE -#define FEAT_CURSORBIND #define FEAT_DIGRAPHS #define FEAT_EVAL #define FEAT_EX_EXTRA diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index ee606d9e80..2f5ae416b3 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -1111,8 +1111,7 @@ do_buffer ( /* Go to the other buffer. */ set_curbuf(buf, action); -#if defined(FEAT_LISTCMDS) \ - && (defined(FEAT_SCROLLBIND) || defined(FEAT_CURSORBIND)) +#ifdef FEAT_LISTCMDS if (action == DOBUF_SPLIT) { RESET_BINDING(curwin); /* reset 'scrollbind' and 'cursorbind' */ }