File tree 3 files changed +15
-4
lines changed
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -1794,6 +1794,10 @@ getcmdline(
1794
1794
goto cmdline_not_changed ;
1795
1795
#endif
1796
1796
1797
+ case K_PS :
1798
+ bracketed_paste (PASTE_CMDLINE , FALSE, NULL );
1799
+ goto cmdline_changed ;
1800
+
1797
1801
default :
1798
1802
#ifdef UNIX
1799
1803
if (c == intr_char )
@@ -2366,8 +2370,7 @@ getexmodeline(
2366
2370
if (ga_grow (& line_ga , 40 ) == FAIL )
2367
2371
break ;
2368
2372
2369
- /* Get one character at a time. Don't use inchar(), it can't handle
2370
- * special characters. */
2373
+ /* Get one character at a time. */
2371
2374
prev_char = c1 ;
2372
2375
c1 = vgetc ();
2373
2376
@@ -2382,6 +2385,12 @@ getexmodeline(
2382
2385
break ;
2383
2386
}
2384
2387
2388
+ if (c1 == K_PS )
2389
+ {
2390
+ bracketed_paste (PASTE_EX , FALSE, & line_ga );
2391
+ goto redraw ;
2392
+ }
2393
+
2385
2394
if (!escaped )
2386
2395
{
2387
2396
/* CR typed means "enter", which is NL */
Original file line number Diff line number Diff line change @@ -3148,7 +3148,7 @@ starttermcap(void)
3148
3148
{
3149
3149
out_str (T_TI ); /* start termcap mode */
3150
3150
out_str (T_KS ); /* start "keypad transmit" mode */
3151
- out_str (T_BE ); /* enable bracketed paste moe */
3151
+ out_str (T_BE ); /* enable bracketed paste mode */
3152
3152
out_flush ();
3153
3153
termcap_active = TRUE;
3154
3154
screen_start (); /* don't know where cursor is now */
@@ -3198,7 +3198,7 @@ stoptermcap(void)
3198
3198
check_for_codes_from_term ();
3199
3199
}
3200
3200
#endif
3201
- out_str (T_BD ); /* disable bracketed paste moe */
3201
+ out_str (T_BD ); /* disable bracketed paste mode */
3202
3202
out_str (T_KE ); /* stop "keypad transmit" mode */
3203
3203
out_flush ();
3204
3204
termcap_active = FALSE;
Original file line number Diff line number Diff line change @@ -764,6 +764,8 @@ static char *(features[]) =
764
764
765
765
static int included_patches [] =
766
766
{ /* Add new patch number below this line */
767
+ /**/
768
+ 228 ,
767
769
/**/
768
770
227 ,
769
771
/**/
You can’t perform that action at this time.
0 commit comments