Mercurial > vim
comparison src/misc2.c @ 6927:58d9f967ae1a v7.4.782
patch 7.4.782
Problem: Still a few problems with CTRL-A and CTRL-X in Visual mode.
Solution: Fix the reported problems. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 17 Jul 2015 13:03:48 +0200 |
parents | ec46a5ca1b51 |
children | e55929fca0cf |
comparison
equal
deleted
inserted
replaced
6926:b2839b524d9f | 6927:58d9f967ae1a |
---|---|
2811 } | 2811 } |
2812 if (bp[0] == 't' && bp[1] == '_' && bp[2] && bp[3]) | 2812 if (bp[0] == 't' && bp[1] == '_' && bp[2] && bp[3]) |
2813 bp += 3; /* skip t_xx, xx may be '-' or '>' */ | 2813 bp += 3; /* skip t_xx, xx may be '-' or '>' */ |
2814 else if (STRNICMP(bp, "char-", 5) == 0) | 2814 else if (STRNICMP(bp, "char-", 5) == 0) |
2815 { | 2815 { |
2816 vim_str2nr(bp + 5, NULL, &l, TRUE, TRUE, NULL, NULL); | 2816 vim_str2nr(bp + 5, NULL, &l, TRUE, TRUE, NULL, NULL, 0); |
2817 bp += l + 5; | 2817 bp += l + 5; |
2818 break; | 2818 break; |
2819 } | 2819 } |
2820 } | 2820 } |
2821 | 2821 |
2843 { | 2843 { |
2844 if (STRNICMP(last_dash + 1, "char-", 5) == 0 | 2844 if (STRNICMP(last_dash + 1, "char-", 5) == 0 |
2845 && VIM_ISDIGIT(last_dash[6])) | 2845 && VIM_ISDIGIT(last_dash[6])) |
2846 { | 2846 { |
2847 /* <Char-123> or <Char-033> or <Char-0x33> */ | 2847 /* <Char-123> or <Char-033> or <Char-0x33> */ |
2848 vim_str2nr(last_dash + 6, NULL, NULL, TRUE, TRUE, NULL, &n); | 2848 vim_str2nr(last_dash + 6, NULL, NULL, TRUE, TRUE, NULL, &n, 0); |
2849 key = (int)n; | 2849 key = (int)n; |
2850 } | 2850 } |
2851 else | 2851 else |
2852 { | 2852 { |
2853 /* | 2853 /* |