Mercurial > vim
comparison src/edit.c @ 6673:21719d38d2ff v7.4.661
updated for version 7.4.661
Problem: Using "0 CTRL-D" in Insert mode may have CursorHoldI interfere.
(Gary Johnson)
Solution: Don't store K_CURSORHOLD as the last character. (Christian
Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 13 Mar 2015 13:24:23 +0100 |
parents | 9f74286c4404 |
children | 97cc4ee3e095 |
comparison
equal
deleted
inserted
replaced
6672:4680bb126b8e | 6673:21719d38d2ff |
---|---|
758 #endif | 758 #endif |
759 | 759 |
760 /* | 760 /* |
761 * Get a character for Insert mode. Ignore K_IGNORE. | 761 * Get a character for Insert mode. Ignore K_IGNORE. |
762 */ | 762 */ |
763 lastc = c; /* remember previous char for CTRL-D */ | 763 if (c != K_CURSORHOLD) |
764 lastc = c; /* remember the previous char for CTRL-D */ | |
764 do | 765 do |
765 { | 766 { |
766 c = safe_vgetc(); | 767 c = safe_vgetc(); |
767 } while (c == K_IGNORE); | 768 } while (c == K_IGNORE); |
768 | 769 |