diff options
| author | Bram Moolenaar <Bram@vim.org> | 2017-02-02 22:21:29 +0100 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2017-02-02 22:21:29 +0100 |
| commit | fd8983b09c64d9bfa8a4bdc16d72c55fbb22b4dc (patch) | |
| tree | 1f3d14352db76c73da522a541affc15ca51b15a7 /src/normal.c | |
| parent | 7a073549a3b1e72037a4e98ceb406d057ac9ba50 (diff) | |
| download | vim-git-fd8983b09c64d9bfa8a4bdc16d72c55fbb22b4dc.tar.gz | |
patch 8.0.0296: bracketed paste can only append, not insertv8.0.0296
Problem: Bracketed paste can only append, not insert.
Solution: When the cursor is in the first column insert the text.
Diffstat (limited to 'src/normal.c')
| -rw-r--r-- | src/normal.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/normal.c b/src/normal.c index 7bae34ed2..3012bf3b7 100644 --- a/src/normal.c +++ b/src/normal.c @@ -9079,8 +9079,13 @@ nv_edit(cmdarg_T *cap) beginline(BL_WHITE|BL_FIX); break; + case K_PS: /* Bracketed paste works like "a"ppend, unless the + cursor is in the first column, then it inserts. */ + if (curwin->w_cursor.col == 0) + break; + /*FALLTHROUGH*/ + case 'a': /* "a"ppend is like "i"nsert on the next character. */ - case K_PS: /* bracketed paste works like "a"ppend */ #ifdef FEAT_VIRTUALEDIT /* increment coladd when in virtual space, increment the * column otherwise, also to append after an unprintable char */ |
