diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-01-28 22:58:16 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-01-28 22:58:16 +0100 |
commit | d21d9a6c6141be8b9c35f2ffede29cc0a6a91de8 (patch) | |
tree | a6152a75b6f56dbcacaf4ff1f2412041d0bd2322 /src/getchar.c | |
parent | c5d5d01ad9e3003f88a1c9aff0f4277c5f6c600e (diff) | |
download | vim-git-d21d9a6c6141be8b9c35f2ffede29cc0a6a91de8.tar.gz |
updated for version 7.2.351v7.2.351
Problem: Can't build with some compilers.
Solution: Move the #ifdef outside of a macro. Cleanup the code.
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/getchar.c b/src/getchar.c index 99f7ddb0d..d28eef5f0 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -2492,17 +2492,24 @@ vgetorpeek(advance) i = FAIL; else { - i = ins_typebuf(s, - save_m_noremap != REMAP_YES - ? save_m_noremap - : STRNCMP(s, + int noremap; + + if (save_m_noremap != REMAP_YES) + noremap = save_m_noremap; + else if ( #ifdef FEAT_EVAL - save_m_keys != NULL ? save_m_keys : + STRNCMP(s, save_m_keys != NULL + ? save_m_keys : mp->m_keys, + (size_t)keylen) +#else + STRNCMP(s, mp->m_keys, (size_t)keylen) #endif - mp->m_keys, - (size_t)keylen) != 0 - ? REMAP_YES : REMAP_SKIP, - 0, TRUE, cmd_silent || save_m_silent); + != 0) + noremap = REMAP_YES; + else + noremap = REMAP_SKIP; + i = ins_typebuf(s, noremap, + 0, TRUE, cmd_silent || save_m_silent); #ifdef FEAT_EVAL if (save_m_expr) vim_free(s); |