Mercurial > vim
comparison src/ex_docmd.c @ 17496:c8152af9fa33 v8.1.1746
patch 8.1.1746: ":dl" is seen as ":dlist" instead of ":delete"
commit https://github.com/vim/vim/commit/94f82cbacf76767b5ac32f813e1d670501dbd0e6
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 24 22:30:27 2019 +0200
patch 8.1.1746: ":dl" is seen as ":dlist" instead of ":delete"
Problem: ":dl" is seen as ":dlist" instead of ":delete".
Solution: Do not use cmdidxs2[] if the length is 1. (closes https://github.com/vim/vim/issues/4721)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 24 Jul 2019 22:45:05 +0200 |
parents | bba80d61ea73 |
children | e00d12c085a5 |
comparison
equal
deleted
inserted
replaced
17495:dafdaaa10d63 | 17496:c8152af9fa33 |
---|---|
3189 } | 3189 } |
3190 | 3190 |
3191 if (ASCII_ISLOWER(eap->cmd[0])) | 3191 if (ASCII_ISLOWER(eap->cmd[0])) |
3192 { | 3192 { |
3193 int c1 = eap->cmd[0]; | 3193 int c1 = eap->cmd[0]; |
3194 int c2 = eap->cmd[1]; | 3194 int c2 = len == 1 ? NUL : eap->cmd[1]; |
3195 | 3195 |
3196 if (command_count != (int)CMD_SIZE) | 3196 if (command_count != (int)CMD_SIZE) |
3197 { | 3197 { |
3198 iemsg(_("E943: Command table needs to be updated, run 'make cmdidxs'")); | 3198 iemsg(_("E943: Command table needs to be updated, run 'make cmdidxs'")); |
3199 getout(1); | 3199 getout(1); |