Mercurial > vim
diff src/ex_cmds.c @ 30645:101f08b49ed3 v9.0.0657
patch 9.0.0657: too many #ifdefs
Commit: https://github.com/vim/vim/commit/7904fa420eb577274c4c3711295240100167d495
Author: Martin Tournoij <martin@arp242.net>
Date: Tue Oct 4 16:28:45 2022 +0100
patch 9.0.0657: too many #ifdefs
Problem: Too many #ifdefs.
Solution: Graduate the +cmdwin feature. Now the tiny and small builds are
equal, drop the small build. (Martin Tournoij, closes #11268)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Oct 2022 17:30:06 +0200 |
parents | 5bc844667d46 |
children | e3d5781c7ec6 |
line wrap: on
line diff
--- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -2739,12 +2739,11 @@ do_ecmd( if (buf != curbuf) { bufref_T save_au_new_curbuf; -#ifdef FEAT_CMDWIN int save_cmdwin_type = cmdwin_type; // BufLeave applies to the old buffer. cmdwin_type = 0; -#endif + /* * Be careful: The autocommands may delete any buffer and change * the current buffer. @@ -2760,9 +2759,7 @@ do_ecmd( save_au_new_curbuf = au_new_curbuf; set_bufref(&au_new_curbuf, buf); apply_autocmds(EVENT_BUFLEAVE, NULL, NULL, FALSE, curbuf); -#ifdef FEAT_CMDWIN cmdwin_type = save_cmdwin_type; -#endif if (!bufref_valid(&au_new_curbuf)) { // new buffer has been deleted