Skip to content

Commit 48c9f3b

Browse files
committed
patch 8.0.0232: paste does not work when 'esckeys' is off
Problem: Pasting in Insert mode does not work when bracketed paste is used and 'esckeys' is off. Solution: When 'esckeys' is off disable bracketed paste in Insert mode.
1 parent 076e502 commit 48c9f3b

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/edit.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,10 @@ edit(
534534
revins_legal = 0;
535535
revins_scol = -1;
536536
#endif
537+
if (!p_ek)
538+
/* Disable bracketed paste mode, we won't recognize the escape
539+
* sequences. */
540+
out_str(T_BD);
537541

538542
/*
539543
* Handle restarting Insert mode.
@@ -8623,6 +8627,9 @@ ins_esc(
86238627
#ifdef CURSOR_SHAPE
86248628
ui_cursor_shape(); /* may show different cursor shape */
86258629
#endif
8630+
if (!p_ek)
8631+
/* Re-enable bracketed paste mode. */
8632+
out_str(T_BE);
86268633

86278634
/*
86288635
* When recording or for CTRL-O, need to display the new mode.

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
232,
767769
/**/
768770
231,
769771
/**/

0 commit comments

Comments
 (0)