Mercurial > vim
diff src/ex_docmd.c @ 13384:6740c499de13 v8.0.1566
patch 8.0.1566: too many #ifdefs
commit https://github.com/vim/vim/commit/8a3bb56230d220b8e1b4dcca517ed95f5341b8c7
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 4 20:14:14 2018 +0100
patch 8.0.1566: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate FEAT_SCROLLBIND and FEAT_CURSORBIND.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 04 Mar 2018 20:15:05 +0100 |
parents | 69517d67421f |
children | d5347779fb20 |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -8263,20 +8263,18 @@ ex_splitview(exarg_T *eap) else if (win_split(eap->addr_count > 0 ? (int)eap->line2 : 0, *eap->cmd == 'v' ? WSP_VERT : 0) != FAIL) { -# ifdef FEAT_SCROLLBIND /* Reset 'scrollbind' when editing another file, but keep it when * doing ":split" without arguments. */ if (*eap->arg != NUL -# ifdef FEAT_BROWSE +# ifdef FEAT_BROWSE || cmdmod.browse -# endif +# endif ) { RESET_BINDING(curwin); } else do_check_scrollbind(FALSE); -# endif do_exedit(eap, old_curwin); } @@ -8768,7 +8766,6 @@ ex_swapname(exarg_T *eap UNUSED) static void ex_syncbind(exarg_T *eap UNUSED) { -#ifdef FEAT_SCROLLBIND win_T *wp; win_T *save_curwin = curwin; buf_T *save_curbuf = curbuf; @@ -8836,7 +8833,6 @@ ex_syncbind(exarg_T *eap UNUSED) ins_typebuf(ctrl_o, REMAP_NONE, 0, TRUE, FALSE); } } -#endif }