Mercurial > vim
comparison src/edit.c @ 10684:83a36d655a74 v8.0.0232
patch 8.0.0232: paste does not work when 'esckeys' is off
commit https://github.com/vim/vim/commit/48c9f3b123364f368472564a66a9b71dc383558b
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Jan 2017 19:15:04 +0100 |
parents | d564e73ff9ee |
children | 689e88afdd11 |
comparison
equal
deleted
inserted
replaced
10683:f31f82e3f06c | 10684:83a36d655a74 |
---|---|
532 undisplay_dollar(); | 532 undisplay_dollar(); |
533 revins_chars = 0; | 533 revins_chars = 0; |
534 revins_legal = 0; | 534 revins_legal = 0; |
535 revins_scol = -1; | 535 revins_scol = -1; |
536 #endif | 536 #endif |
537 if (!p_ek) | |
538 /* Disable bracketed paste mode, we won't recognize the escape | |
539 * sequences. */ | |
540 out_str(T_BD); | |
537 | 541 |
538 /* | 542 /* |
539 * Handle restarting Insert mode. | 543 * Handle restarting Insert mode. |
540 * Don't do this for "CTRL-O ." (repeat an insert): we get here with | 544 * Don't do this for "CTRL-O ." (repeat an insert): we get here with |
541 * restart_edit non-zero, and something in the stuff buffer. | 545 * restart_edit non-zero, and something in the stuff buffer. |
8621 setmouse(); | 8625 setmouse(); |
8622 #endif | 8626 #endif |
8623 #ifdef CURSOR_SHAPE | 8627 #ifdef CURSOR_SHAPE |
8624 ui_cursor_shape(); /* may show different cursor shape */ | 8628 ui_cursor_shape(); /* may show different cursor shape */ |
8625 #endif | 8629 #endif |
8630 if (!p_ek) | |
8631 /* Re-enable bracketed paste mode. */ | |
8632 out_str(T_BE); | |
8626 | 8633 |
8627 /* | 8634 /* |
8628 * When recording or for CTRL-O, need to display the new mode. | 8635 * When recording or for CTRL-O, need to display the new mode. |
8629 * Otherwise remove the mode message. | 8636 * Otherwise remove the mode message. |
8630 */ | 8637 */ |