mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
@@ -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.
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user