diff options
author | Michael Reed <m.reed@mykolab.com> | 2015-07-19 06:14:26 -0400 |
---|---|---|
committer | Michael Reed <m.reed@mykolab.com> | 2015-07-20 20:43:09 -0400 |
commit | 4455fc3f05ccee06d416d269d3a83a423b0b15b8 (patch) | |
tree | 8ee4113237d9434feac32c0561d3e72d2550fe75 /src | |
parent | bd753bdacce6e4e935ac7e93f29bf30223131e5e (diff) | |
download | rneovim-4455fc3f05ccee06d416d269d3a83a423b0b15b8.tar.gz rneovim-4455fc3f05ccee06d416d269d3a83a423b0b15b8.tar.bz2 rneovim-4455fc3f05ccee06d416d269d3a83a423b0b15b8.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_cmds.lua | 6 | ||||
-rw-r--r-- | src/nvim/ex_docmd.c | 5 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua index 41c596c5a8..5221554306 100644 --- a/src/nvim/ex_cmds.lua +++ b/src/nvim/ex_cmds.lua @@ -3165,12 +3165,6 @@ return { func='ex_previous', }, { - command='Print', - flags=bit.bor(RANGE, WHOLEFOLD, COUNT, EXFLAGS, TRLBAR, CMDWIN), - addr_type=ADDR_LINES, - func='ex_print', - }, - { command='~', enum='CMD_tilde', flags=bit.bor(RANGE, WHOLEFOLD, EXTRA, CMDWIN, MODIFY), diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index fc7e2c9b44..c66447d611 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -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)) |