mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
Remove ':Print' command #3049
There's no way this isn't some long-running joke: "Just as ':print'. Was apparently added to Vi for people that keep the shift key pressed too long..." Note: A user command can overrule this command. Regarding ':X': the command has been removed for a while, but the documentation must have been missed, so remove it here. Reviewed-by: Justin M. Keyes <justinkz@gmail.com> Helped-by: @jusga
This commit is contained in:
@@ -2401,9 +2401,8 @@ static char_u *find_command(exarg_T *eap, int *full)
|
||||
break;
|
||||
}
|
||||
|
||||
/* Look for a user defined command as a last resort. Let ":Print" be
|
||||
* overruled by a user defined command. */
|
||||
if ((eap->cmdidx == CMD_SIZE || eap->cmdidx == CMD_Print)
|
||||
// Look for a user defined command as a last resort.
|
||||
if ((eap->cmdidx == CMD_SIZE)
|
||||
&& *eap->cmd >= 'A' && *eap->cmd <= 'Z') {
|
||||
/* User defined commands may contain digits. */
|
||||
while (ASCII_ISALNUM(*p))
|
||||
|
Reference in New Issue
Block a user