0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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.
This commit is contained in:
Bram Moolenaar
2017-01-24 19:08:15 +01:00
parent 076e502199
commit 48c9f3b123
2 changed files with 9 additions and 0 deletions

View File

@@ -534,6 +534,10 @@ edit(
revins_legal = 0; revins_legal = 0;
revins_scol = -1; revins_scol = -1;
#endif #endif
if (!p_ek)
/* Disable bracketed paste mode, we won't recognize the escape
* sequences. */
out_str(T_BD);
/* /*
* Handle restarting Insert mode. * Handle restarting Insert mode.
@@ -8623,6 +8627,9 @@ ins_esc(
#ifdef CURSOR_SHAPE #ifdef CURSOR_SHAPE
ui_cursor_shape(); /* may show different cursor shape */ ui_cursor_shape(); /* may show different cursor shape */
#endif #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. * When recording or for CTRL-O, need to display the new mode.

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
232,
/**/ /**/
231, 231,
/**/ /**/