Commit dde6a66
committed
Fix regression around escape sequences
We mapped esc to cancel the prompt, but when using Vim (not an issue in Nvim due
to its proper key parsing via libtermkey), even arrow keys would cancel the
prompt because they emit sequences like \eOA, \eOB, etc.
Now we reverse the logic. The default mode is to cancel the prompt unless <cr>
(or the equivalent <c-m>) is typed.
This was once fixed in
mhinz@2271e35
but regressed when we removed the need for magic strings.
Fixes mhinz#2211 parent d8fa51d commit dde6a66
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
764 | | - | |
| 764 | + | |
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
| 770 | + | |
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
| |||
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
796 | | - | |
| 796 | + | |
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
819 | | - | |
| 819 | + | |
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
823 | | - | |
| 823 | + | |
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
| |||
0 commit comments