aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-02 21:28:22 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-02 21:28:22 +1200
commit1fea3b6f730ded04973ac1fabbc43369e4049b2d (patch)
tree88b7e97d14a56ff74c54c5645140b4c0911d9d96
parentUse a correct doc reference (diff)
downloadvim-insert-cancel-1fea3b6f730ded04973ac1fabbc43369e4049b2d.tar.gz
vim-insert-cancel-1fea3b6f730ded04973ac1fabbc43369e4049b2d.zip
Add a BUGS section
Maybe I can fix this somehow.
-rw-r--r--doc/insert_cancel.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/insert_cancel.txt b/doc/insert_cancel.txt
index aaabf6d..c62671e 100644
--- a/doc/insert_cancel.txt
+++ b/doc/insert_cancel.txt
@@ -22,6 +22,16 @@ yourself in your |vimrc|. For example:
>
imap <C-C> <Plug>InsertCancel
<
+BUGS *insert_cancel-bugs*
+
+If you open a line with |o| or |O|, and then press |i_CTRL-C| without making
+any other changes, that change will not be reverted.
+
+This is because for |o| and |O|, |b:changedticks| is incremented before the
+|InsertLeave| event used to sample the counter for comparison with when CTRL-C
+is pressed, and I can't figure out how to catch it any earlier without using
+|CursorMoved| or or |vim8|'s |TextChanged|, which I'd rather avoid.
+
AUTHOR *insert_cancel-author*
Written and maintained by Tom Ryder <tom@sanctum.geek.nz>.