mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
Merge pull request #1582 from LBEaston/FixSegFault
Fix SegFault when entering Command(q:) or Search(q/) History
This commit is contained in:
@@ -479,7 +479,7 @@ char_u *vim_strbyte(const char_u *string, int c)
|
|||||||
* Does not handle multi-byte char for "c"!
|
* Does not handle multi-byte char for "c"!
|
||||||
*/
|
*/
|
||||||
char_u *vim_strrchr(const char_u *string, int c)
|
char_u *vim_strrchr(const char_u *string, int c)
|
||||||
FUNC_ATTR_NONNULL_RET FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE
|
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE
|
||||||
{
|
{
|
||||||
const char_u *retval = NULL;
|
const char_u *retval = NULL;
|
||||||
const char_u *p = string;
|
const char_u *p = string;
|
||||||
|
Reference in New Issue
Block a user