}
}
- term_replace_bs_del_keycode(ta_buf, ta_len, len);
+ len = term_replace_bs_del_keycode(ta_buf, ta_len, len);
/*
* For pipes: echo the typed characters.
}
}
- term_replace_bs_del_keycode(ta_buf, ta_len, len);
+ len = term_replace_bs_del_keycode(ta_buf, ta_len, len);
/*
* For pipes: echo the typed characters. For a pty this
void swap_tcap(void);
void ansi_color2rgb(int nr, char_u *r, char_u *g, char_u *b, char_u *ansi_idx);
void cterm_color2rgb(int nr, char_u *r, char_u *g, char_u *b, char_u *ansi_idx);
-void term_replace_bs_del_keycode(char_u *ta_buf, int ta_len, int len);
+int term_replace_bs_del_keycode(char_u *ta_buf, int ta_len, int len_arg);
/* vim: set ft=c : */
#endif
/*
- * Replace K_BS by <BS> and K_DEL by <DEL>
+ * Replace K_BS by <BS> and K_DEL by <DEL>.
+ * Returns "len" adjusted for replaced codes.
*/
- void
-term_replace_bs_del_keycode(char_u *ta_buf, int ta_len, int len)
+ int
+term_replace_bs_del_keycode(char_u *ta_buf, int ta_len, int len_arg)
{
+ int len = len_arg;
int i;
int c;
if (has_mbyte)
i += (*mb_ptr2len_len)(ta_buf + i, ta_len + len - i) - 1;
}
+ return len;
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 653,
/**/
652,
/**/