mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
refactor: remove NULL check that is always true
This commit is contained in:
@@ -3583,8 +3583,7 @@ int map_to_exists_mode(const char *const rhs, const int mode, const bool abbr)
|
|||||||
mp = maphash[hash];
|
mp = maphash[hash];
|
||||||
}
|
}
|
||||||
for (; mp; mp = mp->m_next) {
|
for (; mp; mp = mp->m_next) {
|
||||||
if ((mp->m_mode & mode)
|
if ((mp->m_mode & mode) && strstr((char *)mp->m_str, rhs) != NULL) {
|
||||||
&& mp->m_str != NULL && strstr((char *)mp->m_str, rhs) != NULL) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user