comparison src/ex_docmd.c @ 27956:2485bf68de34 v8.2.4503

patch 8.2.4503: Vim9: there is no point in supporting :Print and :mode Commit: https://github.com/vim/vim/commit/6aca4d3c2bb6b60cdf51b2ab49fbec6b8f88c890 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 4 17:10:19 2022 +0000 patch 8.2.4503: Vim9: there is no point in supporting :Print and :mode Problem: Vim9: there is no point in supporting :Print and :mode. Solution: Do not recognize :Print and :mode as commands. (closes https://github.com/vim/vim/issues/9870)
author Bram Moolenaar <Bram@vim.org>
date Fri, 04 Mar 2022 18:15:03 +0100
parents 6e5d378919c4
children 212c5894b8b1
comparison
equal deleted inserted replaced
27955:e88daba055ac 27956:2485bf68de34
3750 *full = TRUE; 3750 *full = TRUE;
3751 #endif 3751 #endif
3752 break; 3752 break;
3753 } 3753 }
3754 3754
3755 // :Print and :mode are not supported in Vim9 script
3756 if (vim9 && (eap->cmdidx == CMD_mode || eap->cmdidx == CMD_Print))
3757 eap->cmdidx = CMD_SIZE;
3758
3755 // Do not recognize ":*" as the star command unless '*' is in 3759 // Do not recognize ":*" as the star command unless '*' is in
3756 // 'cpoptions'. 3760 // 'cpoptions'.
3757 if (eap->cmdidx == CMD_star && vim_strchr(p_cpo, CPO_STAR) == NULL) 3761 if (eap->cmdidx == CMD_star && vim_strchr(p_cpo, CPO_STAR) == NULL)
3758 p = eap->cmd; 3762 p = eap->cmd;
3759 3763