diff options
author | shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> | 2022-02-16 12:22:15 +0600 |
---|---|---|
committer | shadmansaleh <13149513+shadmansaleh@users.noreply.github.com> | 2022-02-16 13:12:46 +0600 |
commit | 07a98b1a75b8c4995ecf8b0e947a1909d91a3d51 (patch) | |
tree | 78b56dae59ed462a7caddbe3a71d1f416c0387ff /src/nvim/getchar.c | |
parent | f5518b78c843e4b187bd246d31bb7fde2925139e (diff) | |
download | rneovim-07a98b1a75b8c4995ecf8b0e947a1909d91a3d51.tar.gz rneovim-07a98b1a75b8c4995ecf8b0e947a1909d91a3d51.tar.bz2 rneovim-07a98b1a75b8c4995ecf8b0e947a1909d91a3d51.zip |
fix: <Nop> not shown in :map commands
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 217477246e..cc653bb4e9 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -3483,7 +3483,7 @@ static void showmap(mapblock_T *mp, bool local) char msg[100]; snprintf(msg, sizeof(msg), "<Lua function %d>", mp->m_luaref); msg_puts_attr(msg, HL_ATTR(HLF_8)); - } else if (mp->m_str == NULL) { + } else if (mp->m_str[0] == NUL) { msg_puts_attr("<Nop>", HL_ATTR(HLF_8)); } else { // Remove escaping of K_SPECIAL, because "m_str" is in a format to be used |