forked from aniani/vim
patch 8.2.4833: failure of mapping not checked for
Problem: Failure of mapping not checked for. Solution: Check return value of ins_typebuf(). (closes #10299)
This commit is contained in:
@@ -4531,7 +4531,9 @@ put_string_in_typebuf(
|
||||
del_typebuf(-extra, offset);
|
||||
else if (extra > 0)
|
||||
// insert the extra space we need
|
||||
ins_typebuf(string + slen, REMAP_YES, offset, FALSE, FALSE);
|
||||
if (ins_typebuf(string + slen, REMAP_YES, offset, FALSE, FALSE)
|
||||
== FAIL)
|
||||
return FAIL;
|
||||
|
||||
// Careful: del_typebuf() and ins_typebuf() may have reallocated
|
||||
// typebuf.tb_buf[]!
|
||||
|
Reference in New Issue
Block a user