# HG changeset patch # User Christian Brabandt # Date 1485281704 -3600 # Node ID 83a36d655a745452d6f8ae7317254bc4f162b1b3 # Parent f31f82e3f06ce510521635a7eb321518862ceed6 patch 8.0.0232: paste does not work when 'esckeys' is off commit https://github.com/vim/vim/commit/48c9f3b123364f368472564a66a9b71dc383558b Author: Bram Moolenaar Date: Tue Jan 24 19:08:15 2017 +0100 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. diff --git a/src/edit.c b/src/edit.c --- a/src/edit.c +++ b/src/edit.c @@ -534,6 +534,10 @@ edit( revins_legal = 0; revins_scol = -1; #endif + if (!p_ek) + /* Disable bracketed paste mode, we won't recognize the escape + * sequences. */ + out_str(T_BD); /* * Handle restarting Insert mode. @@ -8623,6 +8627,9 @@ ins_esc( #ifdef CURSOR_SHAPE ui_cursor_shape(); /* may show different cursor shape */ #endif + if (!p_ek) + /* Re-enable bracketed paste mode. */ + out_str(T_BE); /* * When recording or for CTRL-O, need to display the new mode. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 232, +/**/ 231, /**/ 230,