diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-02-13 13:03:22 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-02-13 13:03:22 +1300 |
commit | a59e1fd2f8a8bfe0a498fce183e6d954a85fc715 (patch) | |
tree | 530f4e11b5dbb50108676dffc8b052b3b83440a7 | |
parent | Merge branch 'hotfix/v3.1.1' (diff) | |
parent | Bump VERSION (diff) | |
download | vim-insert-cancel-a59e1fd2f8a8bfe0a498fce183e6d954a85fc715.tar.gz vim-insert-cancel-a59e1fd2f8a8bfe0a498fce183e6d954a85fc715.zip |
Merge branch 'release/v3.2.0'v3.2.0
* release/v3.2.0:
Redraw the screen after cancelling insert
Add issues to docs
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | doc/insert_cancel.txt | 6 | ||||
-rw-r--r-- | plugin/insert_cancel.vim | 3 |
3 files changed, 10 insertions, 1 deletions
@@ -1 +1 @@ -3.1.1 +3.2.0 diff --git a/doc/insert_cancel.txt b/doc/insert_cancel.txt index 4adb82c..1d8ce7c 100644 --- a/doc/insert_cancel.txt +++ b/doc/insert_cancel.txt @@ -26,6 +26,12 @@ example: > imap <C-C> <Plug>(InsertCancel) < +ISSUES *insert_cancel-issues* + +It doesn't work at all in paste mode, in the same way as any other mapping, so +you can't cancel an insert operation while pasting. You might consider this a +feature. + AUTHOR *insert_cancel-author* Written and maintained by Tom Ryder <tom@sanctum.geek.nz>. diff --git a/plugin/insert_cancel.vim b/plugin/insert_cancel.vim index 1ec0f91..18bd0ac 100644 --- a/plugin/insert_cancel.vim +++ b/plugin/insert_cancel.vim @@ -48,6 +48,9 @@ function! s:Cancel() silent undo endif + " Redraw the screen to avoid bug with vestigial 'showmode' display + redraw! + endfunction " Set up the hooks described for the functions above, if Vim is new enough to |