No OOM in vim_strsave_escape_csi()

This commit is contained in:
Felipe Oliveira Carvalho
2014-05-31 00:10:32 -03:00
parent a26a1697c7
commit 3a9a76c996
3 changed files with 9 additions and 16 deletions

View File

@@ -8295,13 +8295,11 @@ static void f_feedkeys(typval_T *argvars, typval_T *rettv)
/* Need to escape K_SPECIAL and CSI before putting the string in the
* typeahead buffer. */
keys_esc = vim_strsave_escape_csi(keys);
if (keys_esc != NULL) {
ins_typebuf(keys_esc, (remap ? REMAP_YES : REMAP_NONE),
typebuf.tb_len, !typed, FALSE);
free(keys_esc);
if (vgetc_busy)
typebuf_was_filled = TRUE;
}
ins_typebuf(keys_esc, (remap ? REMAP_YES : REMAP_NONE),
typebuf.tb_len, !typed, FALSE);
free(keys_esc);
if (vgetc_busy)
typebuf_was_filled = TRUE;
}
}