if (modifier == 0)
{
if (put_string_in_typebuf(offset, 4, new_string, len,
- NULL, 0, 0) == FAIL)
+ NULL, 0, NULL) == FAIL)
return -1;
}
else
{
tp[2] = modifier;
if (put_string_in_typebuf(offset + 3, 1, new_string, len,
- NULL, 0, 0) == FAIL)
+ NULL, 0, NULL) == FAIL)
return -1;
}
return len;
#endif
/*
- * Put "string[new_slen]" in typebuf, or in "buf[bufsize]" if "buf" is not NULL.
+ * If "buf" is NULL put "string[new_slen]" in typebuf; "buflen" is not used.
+ * If "buf" is not NULL put "string[new_slen]" in "buf[bufsize]" and adjust
+ * "buflen".
* Remove "slen" bytes.
* Returns FAIL for error.
*/
if (version > 20000)
version = 0;
- // Figure out more if the reeponse is CSI > 99 ; 99 ; 99 c
+ // Figure out more if the response is CSI > 99 ; 99 ; 99 c
if (first == '>' && argc == 3)
{
int need_flush = FALSE;
if (*T_8U != NUL && write_t_8u_state == MAYBE)
// Did skip writing t_8u, a complete redraw is needed.
redraw_later_clear();
- write_t_8u_state = OK; // can otuput t_8u now
+ write_t_8u_state = OK; // can output t_8u now
// Only set 'ttymouse' automatically if it was not set
// by the user already.