feat(mappings): considering map description when filtering (#17423)

This commit is contained in:
Shadman
2022-02-16 14:39:50 +06:00
committed by GitHub
parent deb33a9775
commit 9a74c2b04a
3 changed files with 21 additions and 8 deletions

View File

@@ -3433,8 +3433,8 @@ static void showmap(mapblock_T *mp, bool local)
{
size_t len = 1;
if (message_filtered(mp->m_keys)
&& mp->m_str != NULL && message_filtered(mp->m_str)) {
if (message_filtered(mp->m_keys) && message_filtered(mp->m_str)
&& (mp->m_desc == NULL || message_filtered((char_u *)mp->m_desc))) {
return;
}