Problem: When pasting test in an xterm on the command line it is surrounded
by <PasteStart> and <PasteEnd>. (Johannes Kaltenbach)
Solution: Add missing changes.
goto cmdline_not_changed;
#endif
+ case K_PS:
+ bracketed_paste(PASTE_CMDLINE, FALSE, NULL);
+ goto cmdline_changed;
+
default:
#ifdef UNIX
if (c == intr_char)
if (ga_grow(&line_ga, 40) == FAIL)
break;
- /* Get one character at a time. Don't use inchar(), it can't handle
- * special characters. */
+ /* Get one character at a time. */
prev_char = c1;
c1 = vgetc();
break;
}
+ if (c1 == K_PS)
+ {
+ bracketed_paste(PASTE_EX, FALSE, &line_ga);
+ goto redraw;
+ }
+
if (!escaped)
{
/* CR typed means "enter", which is NL */
{
out_str(T_TI); /* start termcap mode */
out_str(T_KS); /* start "keypad transmit" mode */
- out_str(T_BE); /* enable bracketed paste moe */
+ out_str(T_BE); /* enable bracketed paste mode */
out_flush();
termcap_active = TRUE;
screen_start(); /* don't know where cursor is now */
check_for_codes_from_term();
}
#endif
- out_str(T_BD); /* disable bracketed paste moe */
+ out_str(T_BD); /* disable bracketed paste mode */
out_str(T_KE); /* stop "keypad transmit" mode */
out_flush();
termcap_active = FALSE;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 228,
/**/
227,
/**/